This topic contains 1 reply, has 2 voices, and was last updated by  Valar Morghulis 3 years, 1 month ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #219


    Hello, i want to replace the name of Author behide date in front page posts with the time of the post. Now displays first left the date of post and after right the name of Author like “by …name of author”.I like to display there the time of post not the name of Author.


    Valar Morghulis


    In your theme directory, open this file: inc/widgets.php

    Go to find this block of code:

    <span class="entry-author clearfix pull-left">
    	<span class="pull-left"><?php _e( 'By', 'punicaframework' ); ?>&nbsp;</span>
    	<a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" class="pull-left"><?php the_author(); ?></a>

    Replace by:

    <span class="entry-author clearfix pull-left">
    	<?php echo esc_html( get_the_time() ); ?>

    Best regards, Punicatheme

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Time of post in front page’ is closed to new replies.