The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Twenty Eleven
Show all comments on home page (8 posts)

  1. cosmocanuck
    Posted 4 years ago #

    Hi! I'd like to have all the comments on the home page show by default instead of the user having to click the little balloon icon. Not sure where to edit the theme file(s) to enable this.

    I have seen some comments saying this is too great a server load, etc., but I only have a small number of comments and in my situation, it's preferable to just have them visible right away, at the end of the homepage article.



  2. cosmocanuck
    Posted 4 years ago #

    Anyone? 8^)

  3. esmi
    Forum Moderator
    Posted 4 years ago #

    Do not edit the Twenty Eleven theme. It is the default WordPress 3.2 theme and having access to an unedited version of the theme is vital when dealing with a range of site issues. Create a child theme for your changes.

  4. cosmocanuck
    Posted 4 years ago #

    Thanks esmi, that's a good point and i will try to revise things so it's set up that way.

    However, I'm still unsure of how to proceed to show comments on the homepage. I'm so used to the "classic" way of hacking and modifying, and Twenty Eleven is so different.
    There isn't even a "home.php" so I don't know what file to change if I only want to make changes to the homepage.

  5. js09
    Posted 4 years ago #

    I need help with this as well.

  6. milo_man18
    Posted 4 years ago #

    I also need help with this

  7. mariazapata
    Posted 4 years ago #

    I was able to figure it out,
    that in the in the index.php page put
    <?php $withcomments = 1; ?>
    and in the content.php page
    <?php comments_template( '', true ); ?>

  8. gerjoru
    Posted 4 years ago #

    Hi mariazapata,
    I want to do the same change and I am very new to this stuff. So I would highly appreciate if you could please answer a couple of questions:

    1) Do you copy and create the index.php & content.php in to your child theme directory?
    2) where in the respective php pages do you put the two codes?

    Thanks a lot in advance for your answers.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic