Is it wrong to build a theme completely in index.php?
-
I have always built my themes (perhaps wrongly?) completely in my
index.php
file.
So I don’t use tags like<?php get_header(); ?>
or<?php get_footer(); ?>
because I have noheader.php
orfooter.php
.My themes are always for myself, or built for a client who wont be adding plugins or anything like that, but I have recently ran into an issue with a certain plugin called JigoShop that isn’t seeming to play nice with my theme, and I am starting to think it’s because I’m not building with multiple files, or that it’s searching for something that it needs to see and I’m not adding.
My setup more or less looks like this:
<head> <?php wp_head(); ?> </head> <body> <div id="wrapper"> ... loop stuff ... </div> <?php wp_footer(); ?> </body>
So I guess what I’m asking, is it wrong to build a theme completely in index.php?
If not, what do I need to add to make a single file theme compliant with plugins?Thanks much!
On a side note, I have gone through the jigoshop doc on how to get Jigoshop to play nicely with a theme, and fashioned my
functions.php
to this tutorial, based on my layout. I had slight results but the theme is still very broken on the Jigoshop page.I am really just trying to trouble shoot here, trying to rule out some things.
- The topic ‘Is it wrong to build a theme completely in index.php?’ is closed to new replies.