WordPress.org

Ready to get started?Download WordPress

Forums

Help with adding comments (3 posts)

  1. jfsomers
    Member
    Posted 8 years ago #

    Hello,

    I'm making a webpage right now using the Kurick default theme. I've changed it quite a bit and one of the larger changes was to combine the header, index, footer, and sidebar .php files into a single file, index.php which is the one you see here:

    http://www.eve-sdslightstar.com

    I did this to make it more familiar to me, since the last time I made a webpage I used wordpress 1.9 I believe. Right now, when clicking on "comments" it says the header file is missing, which is of course the case since I merged it with the index file.

    How can I get the comments to work while using only the single index file?

    Thanks in advance

  2. moshu
    Member
    Posted 8 years ago #

    I guess only if you go back to 1.2 :)
    OK, on a more serious note: when clicking on the "comments" link it will call the single.php which will have the comments.php included.
    So, I am afraid, the single.php doesn't have a header... because you just eliminated. Also, the archive.php, the page.php, the archives.php etc. will not have a header either.

    Maybe it wasn't that smart an idea what you did. The theme system - introduced since WP 1.5 - relies heavily on those separate files.
    Take a look at how it works:
    http://www.transycan.net/blogtest/2005/03/31/visual-anatomy-of-a-wp-15-theme/

  3. jfsomers
    Member
    Posted 8 years ago #

    Damn. Back to the drawing board. Thanks for the insight though.

    EDIT: Sweet. I decided to just wing it and copy and paste the changes I made to my aggregate file to the seperate, orginal files and things work out fine. Thanks again for the help.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.