Skip to content

Documentation

Extensive Documentation for PowerPack & WooPack to help you with common questions and issues.

PowerPack

⌘K
  1. Home
  2. Docs
  3. PowerPack
  4. Extensions
  5. Header/Footer
  6. How to add support for Header/Footer in Unsupported Themes?

How to add support for Header/Footer in Unsupported Themes?

If you come across the following error message while using PowerPack’s Header and Footer option then it means that the theme you’re using is not supported by default.

Header/Footer: Theme Not Supported Error
Header/Footer: Theme Not Supported Error

But there is no need to worry because you can add the support for PowerPack’s Header / Footer by adding the following code in your current theme’s functions.php file.

add_theme_support( 'pp-header-footer', array(
	'header_hook' => 'current_theme_header_hook',
	'footer_hook' => 'current_theme_footer_hook',
) );

Here current_theme_header_hook and current_theme_footer_hook should be replaced by actual hooks present in the theme. These hooks are responsible for rendering the header and footer. If you’re unable to find them then please check the theme documentation or contact the theme developer to get the correct hooks.

×