• 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:

    https://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

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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:
    https://www.transycan.net/blogtest/2005/03/31/visual-anatomy-of-a-wp-15-theme/

    Thread Starter jfsomers

    (@jfsomers)

    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Help with adding comments’ is closed to new replies.