WordPress.org

Forums

Wilson
[resolved] Post Comments (2 posts)

  1. gralton
    Member
    Posted 1 year ago #

    Wonderful theme! love it!

    question: Is it possible to remove 'COMMENTS OFF' on the blog posts after date and author? just curious thanks.

  2. Anders Noren
    Member
    Theme Author

    Posted 1 year ago #

    Hi gralton,

    Thanks for the kind words!

    Do you mean in the post-meta (below the title)? Open content.php, go to line 43 and replace the following line:

    <?php comments_popup_link( '<span class="comment">' . __( '0 Comments', 'wilson' ) . '</span>', __( '1 Comment', 'wilson' ), __( '% Comments', 'wilson' ) ); ?>

    With the following code:

    <?php comments_popup_link( '<span class="comment">' . __( '0 Comments', 'wilson' ) . '</span>', __( '1 Comment', 'wilson' ), __( '% Comments', 'wilson' ), '', '' ); ?>

    The content within the very last pair of single quotation marks will be displayed if there are no comments. Leave it blank, and the "Comments off" text should be removed.

    Repeat the steps for content-video.php. Let me know if you need any more help.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags