Change the info of the post

hi
with ethos 1 i have this

and i want to change the info like this " By Mxxbr . January 24, 2018"

i want to add “read this” button justa after description and the number of comments but with icon

Hi There,

Thanks for writing in! To change the post author name, either you will have to create a new WordPress user or change the name of the existing user info through WordPress backend Users section.

Date format you can change by head over to Settings -> General -> Date Format section.

To add a read more link, you can follow this post (https://theme.co/apex/forum/t/change-read-more-in-news-overview-using-theme-x-renew-stack/14515/2?u=mldarshana).

Hope that helps.

thanks for your reply
it wasnt about changing the user name but the foat as in the image
in ethos it is like this : “in” category “by” author “/” date “/ leave a comment”

i want it to change like this “by” author " . " date

Hi there,

Please add this code in the functions.php file of the child theme:

if ( ! function_exists( 'x_ethos_entry_meta' ) ) :
  function x_ethos_entry_meta() {

    //
    // Author.
    //

    $author = sprintf( ' %1$s %2$s</span>',
      __( 'By', '__x__' ),
      get_the_author()
    );


    //
    // Date.
    //

    $date = sprintf( '<span><time class="entry-date" datetime="%1$s">%2$s</time></span>',
      esc_attr( get_the_date( 'c' ) ),
      esc_html( get_the_date() )
    );

    //
    // Output.
    //

    if ( x_does_not_need_entry_meta() ) {
      return;
    } else {
      printf( '<p class="p-meta">%1$s . %2$s</p>',
        $author,
        $date
      );
    }

  }
endif;

Hope this helps.

thanks for the help

You are most welcome. :slight_smile:

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.