Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #600342

    Hi team!

    It’s possible to have the header search box (I mean the #menu-item-search from the header of website, not the widget) in a avia “Fullwith Sub Menu” Element when we use “Hide header menu on this page” in Header visibility and transparency option?

    Thanks for your help!

    Marc – Winsiders

    #600451

    Hi Octopus4444!

    not sure, can you provide us a link to your site showing the elements in question please? we need to be able to inspect the elements.

    Regards,
    Andy

    #601181

    Hi Andy,
    Thanks for your answer follow the private link.

    #602701

    Andy?

    #603454

    Hey!

    Please try adding following code to Functions.php file in Appearance > Editor

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

    Best regards,
    Yigit

    #604406

    Hey Yigit,
    Thanks for your help, but it’s not the answer of my problem :/ (I try your solution but i think is not the good answer).
    I give a picture for more precisions (see in private).

    Thanks again for your time

    Marc

    #604410

    Hi!

    Have you tried the code i posted as it should be doing the exact same thing :)

    Regards,
    Yigit

    #604548

    I have tying your code he doesn’t work on my site :/
    Do you add any shortcode in your test-page? Can you give me a screenshot of your result?

    See in private the FTP access / WordPress Access

    #605547

    Hi!

    Please change the code to following one

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

    This is how it looks on my local installation – http://imgur.com/a/cvwNO

    Best regards,
    Yigit

    #605811

    Hi Yigit,
    Thanks for your help, it’s “work”! :)
    -> I add many custom CSS line for hide the main header on my home page but it’s the good result!

    Thanks again for your help, it’s done

    Marc – Winsiders

    • This reply was modified 8 years, 8 months ago by Octopus4444.
    #605826

    Hi!

    You are welcome! Glad we could help :)
    Let us know if you have any other questions or issues

    Cheers!
    Yigit

Viewing 11 posts - 1 through 11 (of 11 total)
  • The topic ‘Search box in "Fullwidth Sub Menu" element’ is closed to new replies.