Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #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?)

    #719437

    Hey 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.
    #719567

    Hi
    I put your code in a new snippet: see private 002.jpg
    And add a menu custom link : see private 001.jpg

    But doesn’t seems to work.
    I test your code directly on the function.php file but not working to

    Does I made a mistake somewhere?

    #719741

    Hi,

    Please see screenshot “001.jpg”. You should insert shortcode [avia_search] into “titre de la navigation” field :)

    Best regards,
    Yigit

    #719752

    I change that but not working… search field doesn’t display in menu.

    #719772

    Hi,

    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,
    Yigit

    #719818

    Hi
    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…

    #720497

    re-up

    #721344

    Hey!

    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,
    Ismael

    #721409

    Ismael,
    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

    #721889

    Ismael re-up (it’s urgent)
    best regards

    #722769

    Hi,

    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,
    Ismael

    #723642

    Ismael,

    can you undo what you have done in function.php and quick css please
    Concerning your answer : December 7, 2016 at 5:33 am

    Thanks

    #724110

    Hi!

    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.

    // https://kriesi.at/support/topic/widget-product-search-only-in-the-product-title-not-all-the-texts/#post-724107

    Cheers!
    Ismael

Viewing 14 posts - 1 through 14 (of 14 total)
  • You must be logged in to reply to this topic.