Jump to content
Sign in to follow this  

Add shortcode in function.php to add widget in header

Recommended Posts

Hi there, I'm trying to follow the advice of this thread and have the following PHP code to insert (from the Custom Widget Area plugin site): if (!function_exists('dynamic_sidebar') || !dynamic_sidebar('Header Widget Area')) : endif; Where do I put this? I tried adding this to my functions.php file and it didn't work... // add_action('hook_name','function name'); add_action('pagelines_before_branding_icons', 'new_widgetarea'); // function name function new_widgetarea(){?> if (!function_exists('dynamic_sidebar') || !dynamic_sidebar('Header Widget Area')) : endif;

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this