Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
include header and footer doesn't work
#1
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?
Reply
#2
You could try writing .php behind the names. That should fix the include()s.
“Don’t forget the important ˚ (not °) on the a,” says the Unicode lover.
Help us test a key change for the core! ¶ Problems with GetSimple? Be sure to enable debug mode!
Reply
#3
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?
Reply
#4
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.
“Don’t forget the important ˚ (not °) on the a,” says the Unicode lover.
Help us test a key change for the core! ¶ Problems with GetSimple? Be sure to enable debug mode!
Reply
#5
thanks, that worked!
Reply
#6
i fixed the documentation on the site... thanks, and sorry for the misleading information...
- Chris
Thanks for using GetSimple! - Download

Please do not email me directly for help regarding GetSimple. Please post all your questions/problems in the forum!
Reply




Users browsing this thread: 1 Guest(s)