-
AuthorPosts
-
September 15, 2015 at 3:57 pm #503433
Hi,
I have made a section in the widget-area named ‘Header’ using code below (in functions.php / childtheme):
add_action( 'ava_after_main_menu', 'enfold_customization_header_widget_area' ); function enfold_customization_header_widget_area() { dynamic_sidebar( 'header' ); }I can display widgets ‘before header’ on pages. This works fine. BUT, not for posts. Here, I see only the shortcode…. (I have to use this area for a layerslider on all pages and posts. Otherwise I have to put in the slider on every single post / page.)
I would be so thankful when you could help me out asap….
Why it’s important for me: because I want to show up a layerslider as part of the header in all pages and posts / and without having to insert the layerslider on any single post/page.
Many thanks in advance!!!
-
This topic was modified 10 years, 1 month ago by
ALCOR.
September 15, 2015 at 4:47 pm #503488PS I tried also the layerslider php function to display the layerslider on all pages. That works fine too. But not for posts. I get an fatal error message:
Fatal error: Call to undefined function layerslider() in …..-
This reply was modified 10 years, 1 month ago by
ALCOR.
September 15, 2015 at 4:47 pm #503492Hey ALCOR!
Can you please post the link to your website so we can see the issue?
Cheers!
YigitSeptember 17, 2015 at 3:58 pm #504920Hi Yigit,
Unfortunately the website is in maintenance mode.
BUT….I solved the issue already. I deactivated the layerslider in the theme, inserting the following code into the functions.php in my childtheme:
add_theme_support('deactivate_layerslider');Then I activated a stand-alone version of Layerslider. Now, there’s a layerslider-widget showing up in the widgets area. I insert this widget into the the Header-section I created before. Voilá…no problems anymore and the layerslider displays on all pages and posts! :)
Thanks ;)
-
This reply was modified 10 years, 1 month ago by
ALCOR.
-
This topic was modified 10 years, 1 month ago by
-
AuthorPosts
- The topic ‘Display widget before header on posts’ is closed to new replies.
