• I’m using the Lovecraft theme for one of my sites and I love it.

    I want to use Jetpack comments, but is not working correctly with the Lovecraft theme. Does anyone know how to make this work?

    I’m almost positive the solution involves editing comments.php. I’ve tried a few different things, but none of them worked. I’m not really skilled in doing this. Can anyone help?

    Thank you in advance!

    Mike

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi,

    I’m having the same problem.

    I liked very much this theme, but would be very nice to get the Jetpack comments working.

    Can someone help us?

    Thanks!!

    Hi Mike,

    I did some tests and I think it works, I have modified the file comments.php
    For me it worked, I put the file bellow, if you want to try:

    <?php if ( post_password_required() ) return; ?>
    
    <?php if ( have_comments() ) : ?>
    
    	<div class="comments-container">
    
    		<div class="comments-inner">
    
    			<a name="comments"></a>
    
    			<div class="comments-title-container">
    
    				<h2 class="comments-title">
    
    					<?php echo count($wp_query->comments_by_type['comment']) . ' ';
    					echo _n( 'Comment' , 'Comments' , count($wp_query->comments_by_type['comment']), 'lovecraft' ); ?>
    
    				</h2>
    
    				<?php if ( comments_open() ) : ?>
    
    					<p class="comments-title-link">
    
    						<a href="#respond"><?php _e('Add Comment','lovecraft'); ?> &rarr;</a>
    
    					</p>
    
    				<?php endif; ?>
    
    				<div class="clear"></div>
    
    			</div>
    
    			<div class="comments">
    
    				<ol class="commentlist">
    				    <?php wp_list_comments( array( 'type' => 'comment', 'callback' => 'lovecraft_comment' ) ); ?>
    				</ol>
    
    				<?php if (!empty($comments_by_type['pings'])) : ?>
    
    					<div class="pingbacks">
    
    						<h3 class="pingbacks-title">
    
    							<?php echo count($wp_query->comments_by_type['pings']) . ' ';
    							echo _n( 'Pingback', 'Pingbacks', count($wp_query->comments_by_type['pings']), 'lovecraft' ); ?>
    
    						</h3>
    
    						<ol class="pingbacklist">
    						    <?php wp_list_comments( array( 'type' => 'pings', 'callback' => 'lovecraft_comment' ) ); ?>
    						</ol>
    
    					</div> <!-- /pingbacks -->
    
    				<?php endif; ?>
    
    				<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : ?>
    
    					<div class="comments-nav" role="navigation">
    
    						<div class="fleft">
    
    							<?php previous_comments_link( '&larr; ' . __( 'Previous', 'lovecraft' ) ); ?>
    
    						</div>
    
    						<div class="fright">
    
    							<?php next_comments_link( __( 'Next', 'lovecraft' ) . ' &rarr;' ); ?>
    
    						</div>
    
    						<div class="clear"></div>
    
    					</div> <!-- /comment-nav-below -->
    
    				<?php endif; ?>
    
    			</div> <!-- /comments -->
    
    		</div> <!-- /comments-inner -->
    
    	</div> <!-- /comments-container -->
    
    <?php endif; ?>
    
    <?php if ( ! comments_open() && ! is_page() ) : ?>
    
    	<div class="comments-container">
    
    		<div class="comments-inner">
    
    			<p class="no-comments"><?php _e( 'Comments are closed.', 'lovecraft' ); ?></p>
    
    		</div>
    
    	</div>
    
    <?php endif; ?>
    
    <?php comment_form(); ?>
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Using Jetpack comments with Lovecraft Theme’ is closed to new replies.