Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #1193206

    Hello!
    I used an existing website with other Theme and change now to enfold.
    There is a main Menue ( horizontal) which works fine.
    Each page should have a vertical Submenu on the left side. ( use Sidebar left)
    There is a Sidebar on each Page. It seems that I have non-influence which menu is shown where
    I would like to have only the manually generated menu for each branch of the main menu.( Baumscule)
    Now shown below the automatic generated. Since I have 2 more menus for other branches and I am unable to select (Baumschule / Gardencenter..) 3 menus at the left side are visible
    On the old theme, it was possible to choose on each Page (branch) , which menu I want to display!

    2. The widget ( menu) added it now shown below (Baumschule) and menu fully open and all Subpages are shown. I want to close and open,

    pls see here https://2020.praskac.at/baumschule/test_2020/
    Pls assist
    thanks
    Peter from COVid19 affected Vienna

    • This topic was modified 4 years, 8 months ago by Peter_Vienna.
    #1193209

    I now checked to make a fresh new page. ( Not use an existing one) There is no left side submenu visible at all! On the old theme, it was possible to choose on each Page, which menu I want to display! I now believe, the menu I see now, is “content” from the old theme!

    #1193315

    Hi Peter_Vienna,

    The menu in the sidebar can be re-assgined if you you go to Appearance > Widgets and assign the menu you need to the sidebar
    Image 2020-03-15 at 21.39.55.png

    Here are the docs for you:

    Stay safe!

    If you need further assistance please let us know.
    Best regards,
    Victoria

    #1193454

    Hi Victoria! It seems that you have not understood what I wanted to say, and don’t think, you click on my website.
    I know all the documentation, but it did not solve my problem at all!

    I have now 4 Menus on the left sidebar
    1.Generic generated from WordPress
    2. Sidebar Content(widget) Gartenzentrum
    3.Sidebar Content(widget) Baumschule
    4.Widget Everyware (widget, as you recommended)

    I kindly ask you reread my original post!
    Thanks you
    Peter

    #1193623

    Hi Peter,

    Well, you can create custom widget areas and assign menu’s there and then in the settings here
    https://share.getcloudapp.com/lluy0GWP choose which sidebar to display for each page built with the Advanced Layout Builder individually.

    Best regards,
    Victoria

    #1193664

    Hi Victoria! Now, I have got it. Thank yoz but
    The menu is very long, full structure of this branch. Meaning “the leaves” are shown at all. Is it possible to show the menu close and open some further leaves if you click on it? Like the old page I had.

    https://www.praskac.at/baumschule/
    Thank you in advance
    Peter

    #1195109

    Hi,
    Sorry for the late reply, I have looked at your sidebar menu and found that clicking on the “down arrows” in the menu expands & collapses the menu, is this what you were looking for?

    Best regards,
    Mike

    #1195116

    Yes, This was possible in the old theme, Is this possible at enfold? Thank you peter

    #1195219

    Hi,
    Sorry, I see that the page I was looking at is not an Enfold page, /baumschule/. So, I tested our navigation widget that allows you to choose a menu as a widget and show it in a sidebar, and with this function the menu is given a “toggle” to expand & collapse the menu:

    function custom_widget_nav_menu(){
      ?>
      <script>
    (function($){
      $(document).ready(function(){ 
      	$('.widget_nav_menu li.menu-item-has-children').click(function(e) { 
      		e.preventDefault();
      	});
          $('.widget_nav_menu li.menu-item-has-children').find('ul').hide();
           $('.widget_nav_menu li.menu-item-has-children').click(function () { 
               $('.widget_nav_menu li.menu-item-has-children').not(this).find('ul').hide();  
               $(this).find('ul').toggle(); 
               
           
           });  
        });  
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'custom_widget_nav_menu');

    This may need adjusting to work with your site, one downfall is when you build your sidebar menu please make the parent menu items have no link so when you click on them to expand the menu you don’t go to that page.
    In the code above I added e.preventDefault(); to avoid this behavior, but it would be better to have the parent menu items have no link.
    Please try building a sidebar navigation with this function to see if it suits your needs.

    Best regards,
    Mike

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