This tutorial shows you how to change the custom tagline area in the Eleven40 Pro child theme by StudioPress with a new widget area.
Here’s the before and after screenshots:
Here’s an example of what the code in this tutorial can produce:
The site description(tagline) in the Eleven40 Pro theme has been re-positioned to the genesis_before_content_sidebar_wrap hook which you can see in the 1st screenshot.
You can also see the 2 lines of PHP code in the functions file which does this.
//* Reposition the site description
remove_action( 'genesis_site_description', 'genesis_seo_site_description' );
add_action( 'genesis_before_content_sidebar_wrap', 'genesis_seo_site_description' );
No need to do anything with the above code.
The Code
Here’s all the code you can copy from the view raw link in the Gist and paste at the end of your child themes functions file to add a new widget area in replace of the site description globally.
Full Width Widget
Note: If you want the content of your widget to span full width, you can change the hook from:
genesis_before_content_sidebar_wrap
To this:
genesis_after_header
Not exactly what you’re looking for? Try the link below.
Leave a Reply
You must be logged in to post a comment.