-
AuthorPosts
-
August 7, 2016 at 5:18 pm #669498
Good Afternoon,
So i wan’t to add search bar directly in the menu not with a wen (look https://Carnegy.fr/) you can look wen in the homepage.
Best Regards,
NoéAugust 7, 2016 at 5:49 pm #669508I precise i wan’t the real search bar in the menu directly.
Best Regards,
NoéAugust 8, 2016 at 5:11 pm #669938Please help me
August 8, 2016 at 5:33 pm #669950Hey!
Please add following code to functions.php file in Appearance > Editor
add_shortcode('avia_search', 'get_search_form'); function add_custom_tooltip(){ ?> <script> jQuery(window).load(function(){ jQuery('.only-mobile-menu-search a').removeAttr('href'); }); </script> <?php } add_action('wp_footer', 'add_custom_tooltip');
and then go to Appearance > Menus and add a new link and add following into navigation label
[avia_search]
and then click “Screen options” on the top right side of the screen and check “CSS Classes”. Then edit your search menu item and give it custom CSS class “only-mobile-menu-search” and save.
Cheers!
Yigit- This reply was modified 8 years, 4 months ago by Yigit.
August 8, 2016 at 6:47 pm #669998Good Afternoon,
When i add in function.php that’s code :
add_shortcode('avia_search', 'get_search_form'); function add_custom_tooltip(){ ?> <script> jQuery(window).load(function(){ jQuery('.only-mobile-menu-search a').removeAttr('href'); }); </script> <?php } add_action('wp_footer', 'add_custom_tooltip');/code>
My website doesn’t work and when I delete it, it’s work,
Best Regards,
NoéAugust 8, 2016 at 6:51 pm #670004Hey!
Excuse me, i did not close the tag properly. I have updated the code i posted here – https://kriesi.at/support/topic/search-bar-4/#post-669950. Please try it now
Best regards,
YigitAugust 8, 2016 at 7:00 pm #670010Good Afternoon,
Thank’s lot, but it’s doesn’t work i just have blank space not the search menu.
You will find in private content the access of my website
Best Regards,
NoéAugust 9, 2016 at 10:58 am #670247I’m not sure but you have received in private content the login and password ?
Best Regards,
NoéAugust 9, 2016 at 12:32 pm #670276Hi!
I applied the changes however i faced menu item limit on your server. Please refer to this post to solve it – http://kriesi.at/documentation/enfold/enfold-menu-item-limit/
Regards,
Yigit -
AuthorPosts
- The topic ‘Search Bar’ is closed to new replies.