We have a site where the main menu is different on different pages. We are using the Themify Conditional Menus plugin (we are using Themify Ultra as the theme) to specify which menus are on which page.
We have a main site menu that we have styled using WP Mega Menu, but do bot seem to be able to use WP Mega Menu to style the alternative menus, since it only allows us to do so if we select the alternative menu as ‘Main Navigation’ which messes up the ‘normal’ main menu. Also the alternative loses the styling if we do this and then switch back.
Is there any way to style an alternative menu in either the free or Pro version?
]]>I try to find a solution how to add another Groovy menu position. I only can find one and no parameter to decide, which menu I want to integrate: https://grooni.com/docs/groovy-menu/integration/manual-integration/
Background to my question:
We need to add another Groovy menu for another language. We integrate this via language switcher in the theme files.
So we need a function like
<?php if ( function_exists( ‘groovy_menu’ ) ) { groovy_menu(‘english’); } ?>
]]>I need a header and footer menu how to I do this with nested pages?
]]>How do I make wp bootstrap starter theme to support the second navigation menu, secondary or social links menu.
Rgds,
]]>I am using the elementor menu widget and like it for customization. However, the old WordPress menu continues to show up in the background. I worked around it by covering it up with my elementary menu, but I did not address the issue.
The problem shows up when you view my site in mobile view. If you pull the screen up or the site takes time to load, the old menu shows up on top.
It looks like I need the WordPress menu as a default for elementary widgets. Is there a way to work around this so I don’t end up creating two menus?
I appreciate your help.
]]>I’m hoping you can help me out. I’m working on adding an extra custom menu to my header. I would like this to be a hamburger menu with slide-in function which is visible (and working) on desktop and mobile. When viewed on a small screen, the two seperate menu’s should join into one.
Tony Robbins gives a good example of what I would like to achieve.
I am fairly new to WordPress and am developing this site locally, so unfortunately I cannot provide a link.
What I have done so far:
1. Registered a new menu in a site-specific plugin:
function wpb_custom_new_menu() {
register_nav_menu('slide-in-menu',__( 'Slide In Menu' ));
}
add_action( 'init', 'wpb_custom_new_menu' );
2. Using the WordPress dashboard, appearance, menu’s: I added pages to this menu
3. I added this menu to the header of my theme:
<?php wpb_custom_new_menu( array( 'theme_location' => 'slide in menu', 'menu_class' => 'slide-in-menu-class' ) ); ?>
4. I created a js file for the code, named this ‘slidepanel.js and uploaded it to a newly-made js folder in my childtheme:
(function($) {
$('#toggle').toggle(
function() {
$('#popout').animate({ left: 0 }, 'slow', function() {
$('#toggle').html('<img src="https://localhost:8888/testwebsite/wp-content/themes/testwebsite-child/images/menu.png" alt="close" />');
});
},
function() {
$('#popout').animate({ left: -250 }, 'slow', function() {
$('#toggle').html('<img src="https://localhost:8888/testwebsite/wp-content/themes/testwebsite-child/images/menu.png" alt="close" />');
});
}
);
})(jQuery);
5. Then I returned to the header file and wrapped my code so that it would toggle:
<div id="toggle">
<img src="https://localhost:8888/testwebsite/wp-content/themes/testwebsite-child/images/menu.png" alt="Show" /></div>
<div id="popout">
<?php wpb_custom_new_menu( array( 'theme_location' => 'slide in menu', 'menu_class' => 'slide-in-menu-class' ) ); ?>
</div>
Unfortunately though, it doesn’t work, even after numerous attempts. All I see is the hamburger icon, exactly where it should be, but:
– it doesn’t toggle open;
– it doesn’t combine with my main menu on a small screen, but stays separate.
I’m hoping someone here can help me out. Maybe there’s something wrong with my code? Maybe I’m working in the wrong files? Any help or other suggestions on how to achieve success in this area would be much appreciated!
Thank you