Viewing 1 replies (of 1 total)
  • Plugin Author Damian Góra

    (@damian-gora)

    Hi,

    I try to avoid extra options. Too many options can be overwhelming for some users.

    You can achieve it by simple JavaScript snippet:

    
    add_action('wp_footer', function () {
        ?>
        <script>
            jQuery(window).on('load', function ($) {
    
                var $input = jQuery('.dgwt-wcas-search-input:first');
    
                if ($input.length > 0) {
                    $input.focus();
                }
            });
        </script>
        <?php
    });
    

    You can add this snippet to your functions.php in the child theme or use Code snippets plugin.

Viewing 1 replies (of 1 total)
  • The topic ‘Autofocus’ is closed to new replies.