Genesis and WordPress Tutorials
by Sridhar Katakam 9 Comments Favorited: 2 times
In Genesis, widgets placed in the built-in Header Right widget area will appear through out the site. What if you wanted to use a different custom widget area in this location on selected views?
In this tutorial I share the code to make the contents of a custom 'Header Right Inner' widget area appear in header's right on all inner pages.
Homepage:
Inner page:
Add this in functions.php:
To view the full content, please sign up for the membership.
Already a member? Log in below or here.
Find my tutorials helpful and wish to donate?
Session expired
Please log in again. The login page will open in a new tab. After logging in you can close it and return to this page.
Are you missing an “L” on line 9 and 10 in the word “repace”?
Corrected in the gist and updated my post. However the change is not reflecting. Perhaps it will take time..
Anyways, it does not affect the functionality as it’s just a function name.
Thanks.
Hi Sridhar
I am using this method to replace the slider in my header right widget area on a specific page that displays my image gallery. There seems to be a plugin conflict. Swapping out this widget area with another seems to be the only short term solution.
Could you please* show me how I would then adjust your code so as to Remove instead of Show the Header Right Inner widget area in Header Right location on all pages other than homepage.
I will adjust is_home() to my specific page.
Hi Sridhar
I am using this method to replace the slider in my header right widget area on a specific page that displays my image gallery. There seems to be a plugin conflict. Swapping out this widget area with another seems to be the only short term solution.
Could you please* show me how I would then adjust your code so as to Remove Header Right widget area in Header Right location on all pages other than homepage and Show The Header Right Inner widget area on hmoepage.
I will adjust is_home() to my specific page.
This does not work on the agency pro theme at all. Is there something different that needs to be done for this theme.
Can you tell me how to replace the header right widget area only for a certain page template I have created?
Hi, Would you know how to add a header widget area to my genesis. My eleven40 pro theme don’t have a “header right widget” for me to add a custom menu. Any information would be greatly appreciated:-)
thanks for this sridhar! i was looking all over for a way to switch my menu on my home page. i stumbled a bit at first as the menus weren’t changing, and then i realized it was the conditional statement ‘is_home()’ which i switched to ‘is_front_page()’ and it works like a dream.
Yes. I have updated the tutorial accordingly.