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
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
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..
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
Hi Yigit,
Thanks a lot! The solution looks easier than expected ;-)
Best
Martin
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