• Resolved pesiiin

    (@pesiiin)


    Hi,

    I’d like to add views number between author and comments at footer of post on index page. Which php I must edit ?

    I thought content.php but there is no author info at footer span.

    Thanx a lot

Viewing 1 replies (of 1 total)
  • It sounds like you’re looking for the sorbet_posted_on function, which is in the file /inc/template-tags.php.

    To replace that function with your own, don’t edit the theme files directly, or your changes will be overwritten when you update the theme. If you’re new to child themes, you can explore these guides:

    https://codex.www.ads-software.com/Child_Themes
    https://op111.net/53/
    https://vimeo.com/49770088

    When your child theme folder is set up, create a blank plain-text file called functions.php and place it in your child theme. Copy the sorbet_posted_on function from the parent theme’s functions.php file into the new functions.php file in your child theme, starting at line 128:

    if ( ! function_exists( 'sorbet_posted_on' ) ) :

    through to the last line, 154:

    endif;

    You can add your new content after this function, which displays the author:

    get_the_author()

Viewing 1 replies (of 1 total)
  • The topic ‘add meta info’ is closed to new replies.