Tagged: hide header, search box, sub-menu
-
AuthorPosts
-
March 18, 2016 at 3:47 pm #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
March 18, 2016 at 5:38 pm #600451Hi 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,
AndyMarch 21, 2016 at 12:44 pm #601181Hi Andy,
Thanks for your answer follow the private link.March 23, 2016 at 6:07 pm #602701Andy?
March 24, 2016 at 9:59 pm #603454Hey!
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,
YigitMarch 29, 2016 at 12:08 pm #604406Hey 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
March 29, 2016 at 12:14 pm #604410Hi!
Have you tried the code i posted as it should be doing the exact same thing :)
Regards,
YigitMarch 29, 2016 at 2:16 pm #604548I 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
March 30, 2016 at 11:29 pm #605547Hi!
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,
YigitMarch 31, 2016 at 12:06 pm #605811Hi 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.
March 31, 2016 at 12:30 pm #605826 -
AuthorPosts
- The topic ‘Search box in "Fullwidth Sub Menu" element’ is closed to new replies.