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?
You could try writing .php behind the names. That should fix the include()s.
hmm, I think you guys need to fix your documentation
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?
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.
i fixed the documentation on the site... thanks, and sorry for the misleading information...