WordPress.org

Forums

Serene
Eliminate Comments Animation (2 posts)

  1. paulegavin
    Member
    Posted 1 year ago #

    I don't use comments on my blog posts, making the comment counter at the bottom of posts irrelevant. Is there a way to have just the date down there?

  2. Christopher Anderton
    Member
    Posted 1 year ago #

    1. ) Open functions.phpin your theme folder. Find this (line 627 to 628):

    printf( '<span class="meta-post-date"><strong>%s.</strong>%s</span> <a href="%s"><div class="meta-comments-count"><span aria-hidden="true" class="icon_comment_alt"></span>%s</div></a>',

    Replace with:

    printf( '<span class="meta-post-date"><strong>%s.</strong>%s</span> <a href="%s">',

    2.) Just below you will find this code:

    esc_url( get_permalink() ),
    sprintf( _n( '1', '%1$s', get_comments_number(), 'Serene'), number_format_i18n( get_comments_number() ) )

    Replace with: esc_url( get_permalink() )
    (we are just deleting the comment count here) and save.

    3.) Open up the style.css file find the following classes and remove them (or modifiy them):
    line 319: .post:hover .meta-post-date
    line 372: .post:hover .meta-post-date (yes, same name as line 319)

    Save.

    The best way is to use a child theme for modifications. More in the codex: http://codex.wordpress.org/Child_Themes

    Cheers
    /Christopher
    (i'm not affiliated with the theme author if someone wonder.)

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags

No tags yet.