Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1203913

    Hi guys!
    Customer bought Enfold and asked me to make some adjustments.
    Because we have a Fullwidth Sub Menu instead of the main menu, I used the code from post #605547 to add a search box. Works great, but it kills the mobile search icon which is located in the main menu.
    The mobile search icon next to the burger menu is there for a second if you refresh the page, but disappears when the added code loads.
    My coding skills are not good enough. Is there any fix?

    Thanks in advance!
    Best
    Martin

    #1204029

    Hey dern1ck,

    Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?

    Best regards,
    Victoria

    #1204050

    Hi Victoria, please see temp admin access in private window. Please don’t wonder the site has no childtheme yet. It’s a client installation..

    #1204493

    Hi Martin,

    I updated your code to following one

    function custom_search_place(){
    ?>
     <script>
    jQuery(window).load(function(){
    jQuery('li#menu-item-search').children().clone().appendTo(".av-submenu-container ul");
    });
     </script>
    <?php
    }
    add_action('wp_footer', 'custom_search_place');

    Please review your website :)

    Cheers!
    Yigit

    #1204510

    Hi Yigit,
    Thanks a lot! The solution looks easier than expected ;-)
    Best
    Martin

    #1204518

    Hi Martin,

    You are welcome!

    For your information, you can take a look at Enfold documentation here – https://kriesi.at/documentation/enfold/

    If you have any other questions or issues, feel free to start a new thread under Enfold sub forum and we will gladly try to help you :)

    Best regards,
    Yigit

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Custom search box in Fullwidth Sub Menu kills mobile search icon’ is closed to new replies.