Forum Moderators: coopster

Message Too Old, No Replies

WordPress footer does not see class file included in header?

Page is telling me classes are not defined...

         

JAB Creations

11:43 am on Apr 8, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



So I decided to install WordPress. More or less it's working but since I serve my page as XHTML the page is broken because my site's footer includes that I'm including are not seeing the classes that are included through the WordPresses's header file. I attempted to include the class file through the common include file in WordPress wp-includes/general-template.php though that did not resolve anything. Any suggestions helpful to my goal?

- John

JAB Creations

12:11 pm on Apr 8, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Some times people makes the most difficult situations out of the most simple scenarios...having a whole function setup when all WordPress had to do was an include!

Open the WordPress theme folder, open index.php, and comment out the header and footer functions and for goodness sakes...just include it's own the header and footer! Then include your own PHP header file. Here is the general overview of what the code should look like...

include("../../../my_own_custom_header.php");
//get_header();
include("header.php");

...content of the index.php file, towards the bottom do the following...
// get_footer();
include("footer.php");

Hope this helps other people out there!

- John