WordPress.org

Ready to get started?Download WordPress

Forums

Yoko
Remove Comment Option (5 posts)

  1. MaxJGreen
    Member
    Posted 2 years ago #

    Hi

    I am looking into ways to remove comment option completely for this theme.

    Would you have any suggestions?

    Thanks

    http://wordpress.org/extend/themes/yoko/

  2. ExEivot
    Member
    Posted 2 years ago #

    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.

  3. roseba
    Member
    Posted 2 years ago #

    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.

  4. insurgenesis
    Member
    Posted 2 years ago #

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

  5. roseba
    Member
    Posted 2 years ago #

    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>

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags