GetSimple Support Forum
include header and footer doesn't work - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: General Questions and Problems (http://get-simple.info/forums/forumdisplay.php?fid=16)
+--- Thread: include header and footer doesn't work (/showthread.php?tid=554)



include header and footer doesn't work - Stephen - 2010-03-19

So I'm trying to create a theme but when I try to use
Code:
<?php include('footer'); ?>
and
Code:
<?php include('header'); ?>
it doesn't work.

I already have a header.php and footer.php in my theme's directory. Am I missing something?


include header and footer doesn't work - Zegnåt - 2010-03-19

You could try writing .php behind the names. That should fix the include()s.


include header and footer doesn't work - Stephen - 2010-03-19

hmm, I think you guys need to fix your documentation Tongue http://get-simple.info/docs/theme-creation

I tried that but it only works for the home page and doesn't work for any other pages

is there a way for get_theme_url() to return a php variable instead of an echo?


include header and footer doesn't work - Zegnåt - 2010-03-19

Al right, maybe try this?
Code:
include(GSTHEMESPATH.$TEMPLATE.'/footer.php')
This should target footer.php in what ever template is chosen. I think. I didn’t test it but it makes sense ;-)

I do agree, the documentation gets it wrong there.


include header and footer doesn't work - Stephen - 2010-03-20

thanks, that worked!


include header and footer doesn't work - ccagle8 - 2010-03-20

i fixed the documentation on the site... thanks, and sorry for the misleading information...