Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #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 9 years, 2 months ago by ALCOR.
    #503488

    PS 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 9 years, 2 months ago by ALCOR.
    #503492

    Hey ALCOR!

    Can you please post the link to your website so we can see the issue?

    Cheers!
    Yigit

    #504920

    Hi 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 9 years, 2 months ago by ALCOR.
Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Display widget before header on posts’ is closed to new replies.