Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #412626

    Hi,
    I would like to add some graphic banner between header and breadcrumb. How can I do this?

    • This topic was modified 9 years, 9 months ago by GIEKApl.
    #412972

    Hi GIEKApl!

    Please see – http://kriesi.at/documentation/enfold/adding-a-widget-area-to-the-header/
    You need to adjust CSS code accordingly to display your image in desired area

    Regards,
    Yigit

    #413000

    I already have one additional widget area in header. How do I add another?
    Thanks

    #413541

    Hey!

    You can another dynamic_sidebar function inside the filter:

    add_action( 'ava_after_main_menu', 'enfold_customization_header_widget_area' );
    function enfold_customization_header_widget_area() {
    	dynamic_sidebar( 'forum' );
        dynamic_sidebar( 'single product pages' );
    }

    Change the name of the dynamic_sidebar.

    Cheers!
    Ismael

    #413617

    I am doing something wrong. I have in fuction.php:

    add_action( ‘ava_before_main_menu’, ‘enfold_customization_header_widget_area’ );
    function enfold_customization_header_widget_area() {
    dynamic_sidebar( ‘header’ );
    }

    when I added yours:

    add_action( ‘ava_after_main_menu’, ‘enfold_customization_header_widget_area’ );
    function enfold_customization_header_widget_area() {
    dynamic_sidebar( ‘banner’ );
    }

    it caused error
    “Fatal error: Cannot redeclare enfold_customization_header_widget_area() (previously declared in…”

    #413621

    Hi!

    Please change the code to following one

    add_action( 'ava_after_main_menu', 'enfold_customization_header_widget_area_banner' );
    function enfold_customization_header_widget_area_banner() {
    dynamic_sidebar( 'banner' );
    }

    You cannot declare two functions with the same name

    Regards,
    Yigit

    #413680

    Thanks :)

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘graphic banner between header and breadcrumb’ is closed to new replies.