Hello!- My client would like a custom button added to the right of the social media icons in the header. Site URL is below. Is this possible?
Also is it possible to make that custom button only appear on the home page?
Thanks so much for your help!
Anna
Hey annameis!
Please see – http://kriesi.at/documentation/enfold/adding-a-widget-area-to-the-header/
You should use the code as following if you would like to display it only on your home page
add_action( 'ava_after_main_menu', 'enfold_customization_header_widget_area' );
function enfold_customization_header_widget_area() {
if(is_home()){
dynamic_sidebar( 'header' );
}
}
Regards,
Yigit
Thank you Yigit! This is exactly what I was looking for. The only issue I’m having is when I use the code to display just on the home page it doesn’t display at all.
When using the code in the documentation is shows up on the home page and throughout the site. Any ideas?
Thanks-
Anna
Hi!
Replace it with this:
add_action( 'ava_after_main_menu', 'enfold_customization_header_widget_area' );
function enfold_customization_header_widget_area() {
if(is_front_page()){
dynamic_sidebar( 'header' );
}
}
Cheers!
Ismael
Works perfectly! Thanks so much for the great support.