WordPress.org

Ready to get started?Download WordPress

Forums

hide comments by default (2 posts)

  1. eddai
    Member
    Posted 4 years ago #

    hi,
    I want to set comments hidden by default in this p2 theme.. how can I process it ?
    thanks

  2. Samuel B
    moderator
    Posted 4 years ago #

    back up 1st
    open theme's entry.php
    look for this

    <?php if ( get_comments_number() > 0 ) : ?>
    		<div class="discussion" style="display: none">
    			<p>
    				<?php p2_discussion_links() ?>
    				<a href="#" class="show_comments" id="prologue-<?php the_ID(); ?>"><?php _e( 'Toggle Comments', 'p2' ) ?></a>
    			</p>
    		</div>

    comment it out or remove it

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags