Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #330693

    Hi, I would like to use the same Sticky Fullwidth Submenu on all pages and posts without having to add it via Avia template builder every time….
    I found the shortcode echo do_shortcode( '[av_submenu menu='5' position='left' color='footer_color' sticky='aviaTBsticky']' );

    Can’t figure out which theme template I should add it to though to have it show on all pages and posts…

    • This topic was modified 10 years, 2 months ago by uniquelylost.
    #331330

    Hi uniquelylost!

    Thank you for using Enfold.

    I’m sorry but this might break the sticky but you can add this on functions.php:

    function ava_sticky_sub() { 
    		$output = do_shortcode("[av_submenu menu='32' position='center' color='main_color' sticky='aviaTBsticky' custom_class='']");;
    		echo $output;
    }
    
    add_action('ava_after_main_container', 'ava_sticky_sub', 10);

    Cheers!
    Ismael

    #331358

    Hi Ismael! I’m using the new sidebar main menu and this breaks the layout….

    I have found that if I add
    <?php echo do_shortcode( "[av_submenu menu='5' position='center' color='footer_color' sticky='aviaTBsticky']" ); ?>

    Right after this line in the header.php

    <body id="top" <?php body_class($style." ".$avia_config['font_stack']." ".$blank); avia_markup_helper(array('context' => 'body')); ?>>

    It almost works but the layout is still not right and the sticky is kind of broken…

    #331904

    Hi!

    The sticky menu is not meant to be used this way because it is a full width element, you’d need to recreate it on every Page, you can make use of Templates to ease this process though.

    Regards,
    Josue

    #332614

    Hi Josue! If its not alot of work could you show me an example of how I could add it to all blog post pages?

    #332648

    Hi!

    Can you post a link to your website? Dashboard access would be needed too.

    Best regards,
    Josue

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.