• Hi
    I want to replace the default mobile menu search form with a custom search form.
    I have inserted the code in the child theme’s helpers.php file but it doesn’t work. It only works when inserting into main theme
    Are there any instructions where I can insert this code in the function.php file?

    Line 4764

    if ( 'drop_down' === $search_style ) {
    $mobile_search_content = '';
    ob_start();
    ?>
    <div class="mobile-searchform">
                     <a href="#" class=""><span></span></a>
                     <?php echo do_shortcode('[my_custom_search_form]'); ?>
    </div>
    <?php
    $mobile_search_content .= ob_get_clean();
    }

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello,

    Please try to copy the mobile-search.php file into the child theme and make changes in that file and check.

    Please share a snapshot of the search box that exactly you wanted to replace in the mobile view because there are 2 search options for the mobile view.

    Thread Starter aduwow

    (@aduwow)

    I tried copying the mobile-search.php file into the child theme and making changes in that file but it still doesn’t work.

    I want to replace the drop down mode search box.
    https://prnt.sc/KuKZtcB_W9Bi

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Replace the default mobile menu search form’ is closed to new replies.