Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #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
    #704880

    Hey 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,
    Vinay

    #705198

    Hi Vinay,

    Thank you!
    It is okay with the search icon.
    But what about the mobile dorp-down?

    Thanks and bye :-)
    nadine

    #705443

    Hi,

    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

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