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

    on the method of registering a new header widget area:

    add_action( 'ava_after_main_menu', 'enfold_customization_header_widget_area' );
    function enfold_customization_header_widget_area() {
    	dynamic_sidebar( 'header' );
    }

    i created a new widget area called header.
    i like to place in future perhaps some infobanners there.
    It seems that this header widget area isn’t included in that scrolloffset. See:

    http://webers-testseite.de/enf02/portfolio-item/project-3-hotel/

    how can we solve this.?

    #600445

    Hey Guenter!

    that won’t be easy to achieve, as header elements are not suppose to scroll. Would be best to search for a plugin with such a banner function.

    Cheers!
    Andy

    #600823

    is there a good plugin for that not to complicated and working well with Enfold ?
    Have you any good advice for me?

    Thanks

    #602869

    Hey!

    Did you remove the widget? I can’t find it in the header. Could you please provide a screenshot of the issue? I also noticed that you added a second logo to the header.

    Regarding the plugin, I haven’t tried any banner plugins before so I won’t be able to suggest anything. And using a plugin seems to be an overkill because you can use html codes to render images in a container.

    Cheers!
    Ismael

    #604510

    thanks Ismael – yes i removed it and do it on that case manually on adding on top a colorsection with “widget everywhere” alb element.

    i’m planning to create a town portal page – and i want to show on different places ( f.e. under the header – before content (top of main)) to show some entries of a given category.

    But nevertheless this question is important – there are these tips to create a “header-widget-area”

    but you can see it in private content link that the scroll offset does not consider that existing header-widget-area
    the first color-section is laying under the widget-area

    #604974

    Hi!

    The widget is placed inside the main menu area or container. Replace the code with this:

    add_action( 'ava_main_header', 'enfold_customization_header_widget_area' );
    function enfold_customization_header_widget_area() {
    	dynamic_sidebar( 'header' );
    }

    This will relocate the widget inside the main header container. Use the css code to adjust the position.

    Cheers!
    Ismael

    #605052

    thanks ismael but this is not the right position – but it gave me the hint where to search.
    i browsed around in enfold folder where the do_action is used.
    In header.php there is a piece of code i can use for that:

    so this is now a solution for me:

    add_action( 'ava_after_main_container', 'enfold_customization_header_widget_area' );
    function enfold_customization_header_widget_area() {
    	dynamic_sidebar( 'header' );
    }

    perhaps it is better to rename the widget area to something else f.e. before-main

    and of course this is not to use with transparent or glassy headers!

    • This reply was modified 8 years ago by Guenni007.
Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘header widget and scroll offset’ is closed to new replies.