Tagged: ,

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1214606

    Hello
    I’ve been browsing the forum for a while and finding solutions to my problems

    I would like to add the search field of the Ajax Search plugin for WooCommerce in “avia-search-tooltip avia-tt” position
    (box after click search icon)

    I think that is possible via the function.php file but I am not asser forrt to write all this = /

    I can call the search by
    [wcas-search-form] or
    <? php echo do_shortcode (‘[wcas-search-form]’); ?>

    I’m sure it will only be a fomality for you =)

    Thank you for your help

    #1216441

    Hey Emulsions,

    Thank you for the inquiry.

    Have you tried editing the searchform.php file? That is where the search bar markup is located. You can also use the ava_frontend_search_form hook to insert additional fields in the existing form to adjust its query.

    Best regards,
    Ismael

    #1220883

    Hello,
    Thanks for your reply, I added the piece of code to searchform.php and I have the search field of my plugin
    But impossible to have the search suggestion = (
    I tried to enlarge the block but nothing appears = /

    Thanks for your help

    <form action=”<?php echo $search_params[‘form_action’]; ?>” id=”searchform” method=”get” class=”<?php echo $disable_ajax; ?>”>
    <div>
    <?php echo do_shortcode(“[wcas-search-form]”); ?>
    </div>
    </form>

    #1221714

    Hi,

    Thank you for the update.

    You have to remove the default form element completely and replace it with the wcas-search-form shortcode. And you probably don’t need to wrap it inside a div tag. Let us know if that helps.

    Best regards,
    Ismael

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