-
AuthorPosts
-
March 11, 2017 at 8:25 pm #759433
Is it possible to add the search option from the main menu in the header into the full width submenu?
March 11, 2017 at 10:10 pm #759472Hey kieranvyas,
Please try this solution: https://kriesi.at/support/topic/move-search-box-to-the-top-sub-menu/#post-191976Best regards,
MikeMarch 14, 2017 at 4:57 pm #760849Hi Mike,
i would like to add a search icon to a full-width Submenu as well. Not in the main menu, and not in the top menu.
Is there a solution to achieve that?Thanks a lot,
SebastianMarch 16, 2017 at 8:32 pm #762173Hi Sebastian,
The solution provided by Mike is totally valid for your case, just put that php function call
<?php get_search_form();?>wherever you need and style it properly.
Let us know if you have any more questions.
Best regards,
VictoriaMarch 22, 2017 at 9:58 pm #765079But how do I add it to a fullwidth submenu element?
March 24, 2017 at 3:30 pm #766238Hi kieranvyas,
Can you give us a link to your website, we need to see your menu?
Best regards,
VictoriaMarch 24, 2017 at 3:32 pm #766240Website in private content. Thank you!
March 24, 2017 at 3:35 pm #766243would you be so kind to post the solution after that?
I’m still searching the right place where to enter the get_search_form…best regards,
sebastianMarch 26, 2017 at 5:19 pm #766983Hi,
@expectmore and @kieranvyas please provide a mockup on where you want to put search and what it has to look like.Best regards,
VictoriaMarch 26, 2017 at 6:27 pm #767005Please see private content
March 27, 2017 at 8:49 am #767249Hi Victoria,
please see the private content.
The vertical line is achieved a blind individual link, so the search icon should be the element before the last.
If that is not possible i would like to place it to the right, next to the WPML menu…March 29, 2017 at 9:48 am #768705Hi kieranvyas,
Here is a solution for you. Put this code to your functions.php
add_action('wp_footer', 'ava_new_custom_script'); function ava_new_custom_script(){ ?> <script type="text/javascript"> (function($) { function a() { $('#menu-blog-menu').append($('li#menu-item-search').clone()); } $(window).load(function() { a(); }); })(jQuery); </script> <?php }Let us know if this was helpful.
Best regards,
VictoriaMarch 29, 2017 at 9:56 am #768708Hi expectmore,
I need a link to your website to be able to help you.
Best regards,
VictoriaMarch 29, 2017 at 10:46 pm #769134That works! Thank you
March 29, 2017 at 11:16 pm #769146Hi,
Glad we could help :)
Best regards,
Nikko -
AuthorPosts
- The topic ‘Add the search icon from header into a full width submenu?’ is closed to new replies.
