Mobile search modal - by mleihs - on WordPress WooCommerce support

This topic has 6 replies, 2 voices, and was last updated 7 years, 12 months ago ago by Jack Richardson

  • Avatar: mleihs
    mleihs
    Participant
    May 3, 2016 at 12:59

    Hi,

    where can I find the .php code that’s resposible for rendering the search modal ( http://imgur.com/Awoj4dR ) on mobile devices. I looked into header.php but wasn’t able to spot it.

    Thank you!

    Best regards

    5 Answers
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    May 3, 2016 at 15:16

    Hello,

    Please clarify what you want to modify in mobile search form.

    Best regards,
    Jack Richardson.

    Avatar: mleihs
    mleihs
    Participant
    May 3, 2016 at 16:26

    Hi,

    replacing

    echo etheme_search(array());

    with

    echo do_shortcode(‘[wpdreams_ajaxsearchpro id=1]’);

    Best regards

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    May 3, 2016 at 16:54

    Hello,

    You need edit header.php file in line 227.

    Best regards,
    Jack Richardson.

    Avatar: mleihs
    mleihs
    Participant
    May 5, 2016 at 13:53

    Hi,

    thanks. Around line 227 there is this code in header.php

    <?php if(class_exists('Woocommerce') && !etheme_get_option('just_catalog') && etheme_get_option('cart_widget')): ?>
    	                    <?php etheme_top_cart(); ?>
    		            <?php endif ;?> 
    

    I don’t want to replace the cart, I’d like to replace the search function for the search modal popup ( -> http://imgur.com/Awoj4dR )

    Would you please take another look?

    Thank you!

    Best regards

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    May 5, 2016 at 18:39

    Hello,

    Please update the theme to 3.0 version as the line was mentioned for this version.
    Create a backup before update!

    Best regards,
    Jack Richardson.

  • Viewing 6 results - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.