GetSimple Support Forum
Theme Developers - include header and footer hooks - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: Themes (http://get-simple.info/forums/forumdisplay.php?fid=10)
+--- Thread: Theme Developers - include header and footer hooks (/showthread.php?tid=1612)



Theme Developers - include header and footer hooks - n00dles101 - 2011-12-28

Attention all theme developers.

To ensure your Themes function correctly with plugins please ensure you include

Code:
<?php get_header(); ?>

between your <head> tags.

And include before the end <body> tag


Code:
<?php get_footer(); ?>


These hooks are required by some plugins to function correctly.

Mike..


Theme Developers - include header and footer hooks - Carlos - 2011-12-31

Which plugins require get_header()?


Theme Developers - include header and footer hooks - m1k3y - 2011-12-31

i8n definetly does, and i think all plugins which use jquery, javascript or css files need it also.

However, which ones use <?php get_ footer()>


Theme Developers - include header and footer hooks - n00dles101 - 2011-12-31

get_header & get_footer trigger the theme_header & theme_footer hooks as of 3.0

Going forward with 3.1 they will also trigger script queuing for including javascripts/stylesheets with your plugins/themes.

we are asking they are included so we can be sure these 2 hooks are triggered.
There have been several problems with plugins on the forum that are down to theme_header not being called.