Support » Themes and Templates » Need to un-collapse comment box on Home page

Need to un-collapse comment box on Home page

  • 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

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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… 🙂

    Moderator Michael


    Forum Moderator

    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Need to un-collapse comment box on Home page’ is closed to new replies.