Leave a Comment Link Doesn't Work
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Leave a Comment Link Doesn't Work’ is closed to new replies.
The topic ‘Leave a Comment Link Doesn't Work’ is closed to new replies.
(@turtledinosaur)
10 years, 2 months ago
Hi! I’m trying to help a friend figure out why her website won’t allow comments. Here it is: http://www.debbieherbert.com
I’ve checked all the necessary boxes to allow comments in the individual posts and went to theme settings to make sure they were turned on there, too.
Here is what the code looks like:
<?php comments_template(); ?>
</h2>
<?php if ( get_comment_pages_count() > 1 && get_option( ‘page_comments’ ) ) : // are there comments to navigate through ?>
<nav id=”comment-nav-above” class=”comment-navigation” role=”navigation”>
<h1 class=”screen-reader-text”><?php _e( ‘Comment navigation’, ‘ultra’ ); ?></h1>
<div class=”nav-links”>
<div class=”nav-previous”><?php previous_comments_link( __( ‘Older Comments’, ‘ultra’ ) ); ?></div>
<div class=”nav-next”><?php next_comments_link( __( ‘Newer Comments’, ‘ultra’ ) ); ?></div>
</div><!– .nav-links –>
</nav><!– #comment-nav-above –>
<?php endif; // check for comment navigation ?>
<ol class=”comment-list”>
<?php
wp_list_comments( array(
‘style’ => ‘ol’,
‘avatar_size’=> 48,
‘short_ping’ => ‘true’
) );
?>
<!– .comment-list –>
<?php if ( get_comment_pages_count() > 1 && get_option( ‘page_comments’ ) ) : // are there comments to navigate through ?>
<nav id=”comment-nav-below” class=”comment-navigation” role=”navigation”>
<h1 class=”screen-reader-text”><?php _e( ‘Comment navigation’, ‘ultra’ ); ?></h1>
<div class=”nav-links”>
<div class=”nav-previous”><?php previous_comments_link( __( ‘Older Comments’, ‘ultra’ ) ); ?></div>
<div class=”nav-next”><?php next_comments_link( __( ‘Newer Comments’, ‘ultra’ ) ); ?></div>
</div><!– .nav-links –>
</nav><!– #comment-nav-below –>
<?php endif; // check for comment navigation ?>
<?php endif; // have_comments() ?>
<?php
// If comments are closed and there are comments, let’s leave a little note, shall we?
if ( ! comments_open() && ‘0’ != get_comments_number() && post_type_supports( get_post_type(), ‘comments’ ) ) :
?>
<p class=”no-comments”><?php echo wp_kses_post( siteorigin_setting(‘text_comments_closed’) ); ?></p>
<?php endif; ?>
<?php comment_form(); ?>
</div><!– #comments –>
Any suggestions or cookies would be much appreciated!