-
AuthorPosts
-
November 30, 2016 at 11:10 am #718675
Hi
currently I have the magnifiying glass icone in menu for searching product.
But I need to highlight this field.
Enclosed a link showing my needs (or maybe you think of another solution?)December 2, 2016 at 12:51 am #719437Hey jb84,
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');
then go to Appearance > Menus and add a new Custom Link and add following shortcode into to navigation field display your search form.
[avia_search]
Best regards,
Yigit- This reply was modified 8 years ago by Yigit.
December 2, 2016 at 10:02 am #719567Hi
I put your code in a new snippet: see private 002.jpg
And add a menu custom link : see private 001.jpgBut doesn’t seems to work.
I test your code directly on the function.php file but not working toDoes I made a mistake somewhere?
December 2, 2016 at 3:12 pm #719741Hi,
Please see screenshot “001.jpg”. You should insert shortcode [avia_search] into “titre de la navigation” field :)
Best regards,
YigitDecember 2, 2016 at 3:29 pm #719752I change that but not working… search field doesn’t display in menu.
December 2, 2016 at 4:15 pm #719772Hi,
Please post us your login credentials (in the “private data” field), so we can take a look at your backend.
Login credentials include:
- The URL to the login screen.
- A valid username (with full administration capabilities).
- As well as a password for that username.
- permission to deactivate plugins if necessary.
Best regards,
YigitDecember 2, 2016 at 5:07 pm #719818Hi
all credentials are in private.Your code above is copy/past in Snippets plugin (see on left WP admin column) you have to activate it.
To not having problem on website I erase on apparence/menu the custom link.Please when it’s done tell me as quickly as possible that I will check if everything all right before my client…
December 5, 2016 at 3:44 pm #720497re-up
December 7, 2016 at 5:33 am #721344Hey!
Thank you for the info. We added the modifications needed to display the search form. You can find those in the functions.php file and the Quick CSS field. We also created a custom link in the Appearance > Menus panel.
Regards,
IsmaelDecember 7, 2016 at 10:03 am #721409Ismael,
ok you did it and thanks but it occure lots of bugs (ajax search result transparency on Layerslider, normal search field doesn’t work on subpages…)So I erase your custom link menu.
May I ask you to undo your work on function.php and css please?
The seach field give result even if the word is inside text in product page. Isn’t it possible to ask him ONLY in product TITLE?Regards
December 8, 2016 at 10:46 am #721889Ismael re-up (it’s urgent)
best regardsDecember 11, 2016 at 5:02 am #722769Hi,
The seach field give result even if the word is inside text in product page. Isn’t it possible to ask him ONLY in product TITLE?
You need install a third party plugin to improve the search index.
// https://wordpress.org/plugins/relevanssi/
// http://kriesi.at/documentation/enfold/use-relevanssi-in-search-instead-of-the-default-search/ok you did it and thanks but it occure lots of bugs (ajax search result transparency on Layerslider, normal search field doesn’t work on subpages…)
I’m not sure what you mean by this. Do you want the product search to display on a specific page? Please install a menu controller plugin.
// https://wordpress.org/plugins/menu-items-visibility-control/
Best regards,
IsmaelDecember 13, 2016 at 10:48 am #723642Ismael,
can you undo what you have done in function.php and quick css please
Concerning your answer : December 7, 2016 at 5:33 amThanks
December 14, 2016 at 6:16 am #724110Hi!
We removed this code from the functions.php file.
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');
Regarding the search query, please refer our answer in this thread.
Cheers!
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.