WordPress.org

Ready to get started?Download WordPress

Forums

Comments in Index.php (5 posts)

  1. pizzaman
    Member
    Posted 9 years ago #

    I wanted to have comments show up after each post so here's what I did.
    Maybe the gurus here can add to this or describe an easier way.

    I went into Kubrick's comments-popup.php file and found a section that was commented as being "the WordPress motor" (line 31). So I copied and pasted the part I needed into my index.php It was only maybe 6-7 lines that I copied and placed right after the "content" div.
    I also copied a few lines for the comment loop and IT WORKED!

    Now I wonder if there is a better way to do this. I tried just putting a comment loop in but nothing showed.

  2. numist
    Member
    Posted 8 years ago #

    I have made a slightly more thorough modification to the index page that I have documented and made available for use.

    Also, it seems that the default theme's page system was incomplete -- you can't comment on pages -- which I also have a modification available to fix (on the same page linked above).

    I hope this helps out other people interested in skinning and modifying the behaviour of their WordPress blogs.

    ./scott

  3. ptp
    Member
    Posted 8 years ago #

    So, I'm hoping for a little help here. When I download the index.phps and put it in the default theme's directory, nothing happens, and if I rename it to index.php, I just get a page displaying code, instead of an actual default page... I'm wondering if anyone can tell me what I'm doing wrong. I've checked the permissions, and it's executable by all, so I'm not sure what I've done wrong. Any help would be much appreciated.

  4. ptp
    Member
    Posted 8 years ago #

    Nevermind. It seems it just didn't download properly using wget... I've got it in there correctly now, and it seems to be working just fine. Great modification, it does exactly what I've been looking for something to do!

  5. mksys
    Member
    Posted 8 years ago #

    Scott, I like what you did, but is there a way to make the default functionality that the comments are open initially?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags