-
AuthorPosts
-
March 18, 2016 at 4:56 pm #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.?
March 18, 2016 at 5:31 pm #600445Hey 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!
AndyMarch 20, 2016 at 11:38 am #600823is there a good plugin for that not to complicated and working well with Enfold ?
Have you any good advice for me?Thanks
March 24, 2016 at 3:51 am #602869Hey!
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!
IsmaelMarch 29, 2016 at 1:35 pm #604510thanks 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-areaMarch 30, 2016 at 6:38 am #604974Hi!
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!
IsmaelMarch 30, 2016 at 9:37 am #605052thanks 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, 9 months ago by Guenni007.
-
AuthorPosts
- The topic ‘header widget and scroll offset’ is closed to new replies.