Dynamic_sidebar inside wp_nav_menu


I have Menu created by wp_nav_menu.
Inside it, I want to set dynamic_sidebar but wp_nav_menu instead of displaying the content, throws 1.

Have everyone some tips for display sidebar inside wp_nav_menu?
I have to add dynamic_sidebar inside menu it’s important.

Inside walker I placed the code:

$item_output .= '
    <div class="recipes__dropdown">
        <div class="container">
            <div class="dropdown__content">
                <div class="row">' . dynamic_sidebar( 'recipes-dropdown' ) . '</div>

Have you any suggestions how include dynamic sidebar inside wp_nav_menu?

, , Igor 4 years 2020-03-24T08:52:24-05:00 0 Answers 125 views 0

Leave an answer