Viewing 9 replies - 1 through 9 (of 9 total)
  • You should be able to drop in the comments template at the bottom of your index.php file (or single.php if you want to include this in all posts). Just insert the code: <?php include("comments.php");?> where you would like the comments to go.

    If this doesn’t work, it means your theme doesn’t have a comments template, or has changed it and you will need to open that file and play with it.

    Thread Starter UP4S

    (@up4s)

    Hi jhoffm34! Hate to sound like a NooB, but where *exactly* do I find the index.php file so I can drop this code into it?

    The theme being used is Brunelleschi 1.5.9. Strange that one page creates a comment link and another creates a comments box. The theme allows both but I can’t find where to turn them on/off. Any ideas?

    Sure, just make sure you back-up your files before you make any changes.

    In the “Appearance” section of your admin panel, click on “Editor.” In the right column you will see a list of files you can edit. Index.php corresponds to your home page. Single.php corresponds to individual posts.

    Thread Starter UP4S

    (@up4s)

    Dang. Still not getting it to work. Tried adding <?php include(“comments.php”);?> to both index.php and single.php separately (saved it) but no change 🙁

    Any idea why WP automatically set two different settings for comments as seen on these two pages?

    http://uniqueproperties4sale.com/

    http://uniqueproperties4sale.com/about-2/

    Thanks for your patience, jhoffm34! Much obliged.

    Sorry about that, think I might have sent the wrong code through. Try <?php comments_template(); ?>

    As for why they are different, that’s the choice of whoever designed the theme you are using, and you might want to try to contact them directly.

    Looks like you actually are adding the comments template with the <?php include> tag, it is just sticking it to the bottom of the page.

    What you need to do, is search for “Leave a Comment” on your index.php file and replace the code surrounding it with <?php include("comments.php");?>.

    Thread Starter UP4S

    (@up4s)

    Weird. I scanned the entire CSS and couldn’t find the phrase, “Leave a Comment.”

    And here’s all I get in the index.php section, specifically:

    <?php get_header(); ?>
    		<div id="main" role="main" class="<?php brunelleschi_content_class(); ?>">
    
    		<?php get_template_part( 'loop', 'index' ); ?>
    
    		</div><!-- #main -->
    <?php if( brunelleschi_options('sidebar') === __('both','brunelleschi')
    		|| brunelleschi_options('sidebar') === __('two left','brunelleschi')
    		|| brunelleschi_options('sidebar') === __('two right','brunelleschi')){
    			get_sidebar('secondary');
    		} ?>
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

    Any thoughts?

    [Moderator Note: Please post code or markup snippets between backticks or use the code button. As it stands, your posted code may now have been permanently damaged/corrupted by the forum’s parser.]

    You may need to pass this off to someone who knows a little more about theme and WordPress development. The comments template is within a content template within your theme.

    Thread Starter UP4S

    (@up4s)

    Will do, jhoffm34. Thanks for the help. Is it possible to reach out to the developer for input?

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Replace "Leave a Comment" Link with a Box?’ is closed to new replies.