Support » Theme: Yoko » Remove “Comments off” from main blog page

  • I cannot find where to turn off or disable the “comments off” line that shows up on the main page under the title and byline. I’ve looked everywhere within the Yoko files, including functions.php, comments.php, content-page.php, content.php, index.php, theme-options.php, and so forth. There has to be a file somewhere that directs the page to output “comments off,” but I can’t find it.

    Any suggestions would be greatly appreciated. I even tried a comments plugin that was supposed to remove all elements related to comments, but that didn’t work either.

Viewing 1 replies (of 1 total)
  • Josh Feck

    (@builtbynorthby)

    Hi,

    You can go into content.php and find line 16, which has this:
    <?php comments_popup_link( __( '0 comments', 'yoko' ), __( '1 Comment', 'yoko' ), __( '% Comments', 'yoko' ) ); ?>

    and change that to:
    <?php comments_popup_link( __( '0 comments', 'yoko' ), __( '1 Comment', 'yoko' ), __( '% Comments', 'yoko' ), '', '' ); ?>

    and the template will no longer output “comments off”.

    Best practice is to use a child theme and put the custom copy of content.php into the child theme.

Viewing 1 replies (of 1 total)
  • The topic ‘Remove “Comments off” from main blog page’ is closed to new replies.