Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #907199

    Hello,
    is it a way in CSS to display the search tooltip field on page load.
    I need this search field to be more visible for my site users.

    Thanks

    #907418

    Hey coolpaie,

    Could you please attach a mockup of what you’re trying to achieve?

    Best regards,
    Victoria

    #907538

    Hello,
    i just need to display the search box at page load instead of having to click on the magnifying glass button

    https://monosnap.com/file/nlb0BvCojEtGtNTPr7695uIEJpijov.png

    #907556

    Hi,
    Try adding this code to the end of your functions.php file in Appearance > Editor:

    
    function open_search(){
    ?>
    <script>
    (function($){
        $(window).load(function() {
           $('.menu-item-search-dropdown a').trigger('click');    	
        });
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'open_search');

    Best regards,
    Mike

    #907576

    Thanks a lot, it’s working like a charm.

    Cordialement
    michel

    #907579

    Hi,
    Glad we were able to help, we will close this now. Thank you for using Enfold.

    Best regards,
    Mike

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘.avia-search-tooltip displayed on page load’ is closed to new replies.