This topic contains 1 reply, has 2 voices, and was last updated by  Valar Morghulis 10 months, 1 week ago.

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

    Giorgos_press
    Participant

    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.
    Thanks.

    #222

    Valar Morghulis
    Moderator

    Hello,

    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>
    </span>
    

    Replace by:

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

    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.