WordPress.org

Support

Support » Themes and Templates » [Theme: Yoko] Remove Comment Option

[Theme: Yoko] Remove Comment Option

Viewing 4 replies - 1 through 4 (of 4 total)
  • This is a simple bypass and doesn’t really remove them, but here goes…

    In the style.css I just added display: none; to #comments

    Hides the comments option from displaying on all pages. Easiest way I could think of with almost no coding.

    This wouldn’t work if you want to disable comments on a single page or a few pages however because it will hide the comments div everywhere it shows up.

    I made a subtheme and am beginning to do work on that. In the subtheme, you can remove the line from content.php. In my case, I don’t want the comment options to display if there are zero comments.

    @roseba hi, which line in content.php would that be?
    Please specify.

    You see the first variable in quotes has nothing in it.

    The code reads zero comments displays nothing, 1 comment displays 1 comment, and the n comments display n comments.

    <?php comments_popup_link( __( '', 'yourwebsitename' ), __( '1 Comment', 'heartspiritmind' ), __( '% Comments', 'yourwebsitename' ) ); ?></p>

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Theme: Yoko] Remove Comment Option’ is closed to new replies.