Need to un-collapse comment box on Home page (3 posts)

  1. cutaia_autumn
    Posted 6 years ago #

    My site is http://www.autumncutaia.com and on the "about" page the comments are right there on the page but on the "home" page they are collapsed. I've been going through everything but no coding I could recognize to use as I'm a newbie.

    So what I need help on is what to do and where to go to un-collapse the comment box on the front page and every post. An example of what I want would be on http://www.chelseanicoleblog.com

  2. Antanarive
    Posted 6 years ago #

    You'll need to edit the theme, which means those changes will be lost if/when you update. Not a big deal if you keep track of what you have modified.

    The call to display the "un-collapsed" comments is used in the single.php file of your template, since the comments are generally expanded when a post is seen on a single page. What you need to do is copy this call to a function and paste it somwhere in the main loop.

    In my theme, based on Thematic Framework, the call for generating and displaying all comments is:

    // calling the comments template

    I assume the function you need is simply comments_template().

    Now, where to paste it? Well, I don't know. :-)

    I tried to find the location. I am pretty sure it is somwhere in content-extension.php, in my theme.. but I could not find more.

    PLEASE make a back-up of everything before trying some stunts... :-)

  3. Michael
    Forum Moderator
    Posted 6 years ago #

    edit loop.php of your theme;

    <?php comments_template( '', true ); ?>

    (around line 164 in the default TwentyTen theme)

    change it to:

    <?php global $withcomments; $withcomments = 1;
    		comments_template( '', true ); ?>

    see explanation here.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.