Help with adding comments (3 posts)

  1. jfsomers
    Posted 10 years ago #


    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:


    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
    Posted 10 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:

  3. jfsomers
    Posted 10 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


No tags yet.