Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter sidneiads

    (@sidneiads)

    The form is not shown because I’ve decided to create a code to hide it.
    I have edited the following in the file content.php:

    	/**
    	 *  Output comments wrapper if it's a post, or if comments are open,
    	 * or if there's a comment number – and check for password.
    	 * */
    	if ( ( is_single() || is_page() ) && (  comments_open() || get_comments_number() ) && ! post_password_required() ) {
    	    if (is_page(176)) 
    	    {
    	    echo '<div class="duvidas-pg">';    
    	    }
    		?>
    
    		<div class="comments-wrapper section-inner">
    
    			<?php comments_template(); ?>
    
    		</div><!-- .comments-wrapper -->
    
    		<?php
    			    if (is_page(176)) 
    	    {
    	    echo '</div>';    
    	    }
    	}
    	?>
    
    </article><!-- .post -->

    And added this to my css file:

    .duvidas-pg {
        display: none;
    }

    Without this code the form is shown even thought the comments are closed.
    If that is a more eficiente way of hiding it, please let me know.

    Thanks,

    -Sidnei

Viewing 1 replies (of 1 total)