Tagged: mobile menu search icon
-
AuthorPosts
-
October 27, 2016 at 11:36 am #704791
Hi!
I have three questions about the mobile menu. Cant find any edit possibilities in the theme options!
Is it possible to get an search icon on the mobile menu?
And is it possible to put the logo in the top of the mobile menu?
It would be great, when there are only the main menu points and the menu is a drop down menu. Is it possible?
Hope you can help!Good job with enfold. Greetings!
- This topic was modified 8 years ago by internetwarriors. Reason: forgot one thing
October 27, 2016 at 3:17 pm #704880Hey internetwarriors,
It would take a lot of time to add the search icon inside the mobile menu however we can add the search icon in mobile device next to mobile menu icon. Please try adding this code to the Quick CSS section under Enfold > General Styling or to your child themes style.css file:
@media only screen and (max-width: 767px) { .main_menu .avia-menu, #header_main_alternate { display: block !important; } .av-main-nav > li { display: none; } li#menu-item-search { display: block!important; margin-top: -90px; right: 70px; } .responsive .main_menu { float: right; }}
Best regards,
VinayOctober 28, 2016 at 8:39 am #705198Hi Vinay,
Thank you!
It is okay with the search icon.
But what about the mobile dorp-down?Thanks and bye :-)
nadineOctober 28, 2016 at 10:50 pm #705443Hi,
Please try adding this at the very end of your themes / child themes functions.php file:
function toggle_submenu(){ ?> <script> (function($){ jQuery(window).load(function() { jQuery('#mobile-advanced .menu-item a').on('click', function(){ jQuery(this).children('.submenu').css('display','block!important'); }); }); })(jQuery); </script> <?php } add_action('wp_footer', 'toggle_submenu');
Add the below css in Quick CSS:
@media only screen and (max-width: 767px) { #mobile-advanced .submenu{ display: none; }}
Best regards,
Vinay -
AuthorPosts
- You must be logged in to reply to this topic.