Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #426256

    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

    #426336

    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

    #426659

    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

    #426919

    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

    #427811

    Works perfectly! Thanks so much for the great support.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Add custom button next to right of social media icons in header’ is closed to new replies.