- This topic has 3 replies, 2 voices, and was last updated 10 years, 11 months ago by .
Viewing 3 reply threads
Viewing 3 reply threads
- You must be logged in to reply to this topic.
Premium WordPress Themes, Templates & Plugins › Support › WordPress Theme Support › Cosmos › Top menu on mobile devices
Hi, how can we change the top menu style to dropdown menu on mobile devices only, like on your deluxe theme?
Best regards.
Hi, there is a way to do it. We’ll let you know the solution several hours later. Thanks for your patience.
King Regards
ThemeofWP.com Team
Hi, I would like to remind you that i’m still waiting for your reply. Thanks. Kind regards.
Hey, you need to include first this js to your theme:
download it and move it to your inc/js/ folder:
https://themeofwp.com/deluxe/wp-content/themes/deluxe/js/mobilemenu/jquery.mobilemenu.js?ver=1.0
and include it via :
wp_enqueue_script( 'mobilemenu', get_template_directory_uri().'/inc/js/jquery.mobilemenu.js', array('jquery'), '1.0', true);
and
open the cosmos/inc/j/framework.js and paste apropriate line:
/* Responsive Menu Translation */
$('#main').mobileMenu();
you menu will be like deluxe theme.
King Regards and Sorry for delay.
ThemeofWP.com Team