• Resolved jlhudy

    (@jlhudy)


    I recently migrated my wordpress.com blog to www.remarpro.com and loving it so far. The added functionality is great, but now that I “own” my site, I’m getting pick with what I want.
    I downloaded the FirsTyme theme, which is great, but my followers have mentioned that it is confusing to leave a comment since you need to click on the post title before this option is available.

    My site is

    I am not an expert on code, but understand there is probably a field I need to edit within the code in order to make this work. My theme came with multiple files to edit, include a comment.php, which I’m thinking is where the code needs to be. I’ve already backed up my site, so ready to go!

    Can someone let me know what I need to change/add to make this available? I’d like someone to be able to click on “add a comment” at the bottom of the post, or at best, click on the part that says “no comments” or ” % comment” and it will take them to the comment box.

    My php file looks like this:

    <?php if ( post_password_required() ) : ?>
    			<div id="comments-list-wrapper">
    				<div class="block_dec_line"></div>
    				<div class="block">
    
    					<p class="nopassword"><?php _e('This post is password protected. Enter the password to view any comments.', 'firstyme'); ?></p>
    
    				</div>
    				<!-- /block -->
    			</div>
    			<!-- /comments-list-wrapper -->
    <?php return; endif; ?>
    
    <?php if ( have_comments() ) : ?>
    
    			<div id="comments-list-wrapper">
    				<div class="block_dec_line"></div>
    				<div class="block">
    
    					<h1><?php _e('Discussion', 'firstyme') ?> (<?php comments_number(); ?>)</h1>
    
    					<ol class="comment_list">
    
    						<div id="page_nav_up">
    							<?php next_comments_link(); ?>
    						</div>
    						<!-- /page_nav_up -->
    
    						<?php wp_list_comments( array( 'callback' => 'firstyme_comments' ) );?>
    
    						<div id="page_nav_down">
    							<?php previous_comments_link(); ?>
    						</div>
    						<!-- /page_nav_up -->
    
    					</ol>
    
    				</div>
    				<!-- /block -->
    			</div>
    			<!-- /comments-list-wrapper -->
    
    <?php else : // or, if we don't have comments:
    # If there are no comments and comments are closed
    if ( ! comments_open() ) :
    # If there are no comments and comments are open
    else:
    endif; // end ! comments_open()
    endif; // end have_comments() ?>
    
    <?php
    comment_form();
    ?>

    Thank you!

Viewing 6 replies - 1 through 6 (of 6 total)
  • hi your site link is missing can you add that ?

    Thread Starter jlhudy

    (@jlhudy)

    That’s weird.. not sure where it went!

    https://www.winetoweightlifting.com

    Thank you ??

    Hi please post the code of you index.php file

    Thread Starter jlhudy

    (@jlhudy)

    Sure thing.

    <?php get_header(); ?>
    
    		<?php if ( is_front_page() && !is_paged() && get_header_image() ) :?>
    		<div class="header_img">
    			<img src="<?php header_image(); ?>" width="<?php echo HEADER_IMAGE_WIDTH; ?>" height="<?php echo HEADER_IMAGE_HEIGHT; ?>" alt="" title=""/>
    		</div>
    		<?php endif; ?>
    
    		<section class="center_col" id="posts">
    
    			<div id="page_nav_up">
    				<?php previous_posts_link(); ?>
    			</div>
    
    			<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
    			<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    				<div class="block_dec_line"></div>
    				<div class="block">
    					<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" id="title"><h1><?php the_title(); ?></h1></a>
    					<small><?php fistyme_home_post_info_top(); ?></small>
    
    					<div class="content">
    						<?php if ( has_post_thumbnail() ) { the_post_thumbnail();} ?>
    						<?php firstyme_content_display(); ?>
    						<?php if( get_the_title() == ""){?>
    							<p><small><a href="<?php the_permalink()?>" title="<?php the_title_attribute(); ?>"><?php _e('Go to the post &rsaquo;', 'firstyme'); ?></a></small></p>
    						<?php }?>
    					</div>
    					<!-- /content -->
    
    					<div class="clear"></div>
    
    					<p><small><?php fistyme_home_post_info_bottom(); ?></small></p>
    				</div>
    				<!-- /block -->
    			</article>
    			<!-- /article -->
    			<?php endwhile; else: ?>
    				<p><?php _e('Sorry, no posts on this blog yet.', 'firstyme'); ?></p>
    			<?php endif; ?>
    
    			<div id="page_nav_down">
    				<?php next_posts_link(); ?>
    			</div>
    		</section>
    		<!-- /center_col -->
    
    		<?php get_footer(); ?>

    Try this:

    <?php get_header(); ?>
    
    		<?php if ( is_front_page() && !is_paged() && get_header_image() ) :?>
    		<div class="header_img">
    			<img src="<?php header_image(); ?>" width="<?php echo HEADER_IMAGE_WIDTH; ?>" height="<?php echo HEADER_IMAGE_HEIGHT; ?>" alt="" title=""/>
    		</div>
    		<?php endif; ?>
    
    		<section class="center_col" id="posts">
    
    			<div id="page_nav_up">
    				<?php previous_posts_link(); ?>
    			</div>
    
    			<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
    			<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    				<div class="block_dec_line"></div>
    				<div class="block">
    					<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" id="title"><h1><?php the_title(); ?></h1></a>
    					<small><?php fistyme_home_post_info_top(); ?></small>
    
    					<div class="content">
    						<?php if ( has_post_thumbnail() ) { the_post_thumbnail();} ?>
    						<?php firstyme_content_display(); ?>
    						<?php if( get_the_title() == ""){?>
    							<p><small><a href="<?php the_permalink()?>" title="<?php the_title_attribute(); ?>"><?php _e('Go to the post &rsaquo;', 'firstyme'); ?></a></small></p>
    						<?php }?>
    					</div>
    					<!-- /content -->
    
    					<div class="clear"></div>
    
    					<p><small><?php fistyme_home_post_info_bottom(); ?></small></p>
    
    					<?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?>
    
    				</div>
    				<!-- /block -->
    			</article>
    			<!-- /article -->
    			<?php endwhile; else: ?>
    				<p><?php _e('Sorry, no posts on this blog yet.', 'firstyme'); ?></p>
    			<?php endif; ?>
    
    			<div id="page_nav_down">
    				<?php next_posts_link(); ?>
    			</div>
    		</section>
    		<!-- /center_col -->
    
    		<?php get_footer(); ?>
    Thread Starter jlhudy

    (@jlhudy)

    I’ll have to tweak it to make it pretty, but exactly the code I needed!!!

    Thank you!!!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Comment box does not show up on main page; only post page’ is closed to new replies.