-
AuthorPosts
-
March 15, 2020 at 12:53 pm #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.
March 15, 2020 at 1:05 pm #1193209I 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!
March 15, 2020 at 9:40 pm #1193315March 16, 2020 at 12:08 pm #1193454Hi 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
PeterMarch 16, 2020 at 8:47 pm #1193623Hi 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,
VictoriaMarch 16, 2020 at 10:31 pm #1193664Hi 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
PeterMarch 21, 2020 at 5:44 pm #1195109Hi,
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,
MikeMarch 21, 2020 at 6:18 pm #1195116Yes, This was possible in the old theme, Is this possible at enfold? Thank you peter
March 22, 2020 at 1:25 pm #1195219Hi,
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 addede.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 -
AuthorPosts
- You must be logged in to reply to this topic.