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

    Right now the search icon in the main menu begins the search from whatever page the visitor is on (Ex: http://www.furfamily/contact/?s= ). How do I change it so it always searches the shops? Example: http://www.furfamily/shop/?s=

    #1046647

    I tried to figure it out and it looks like it works at first but the actual search results do not reflect the change. I copied functions-enfold.php to my child theme and changed the following lines

    	        $items .= '<li id="menu-item-search" class="noMobile menu-item menu-item-search-dropdown menu-item-avia-special">
    							<a href="shop/?s=" rel="nofollow" data-avia-search-tooltip="'.$form.'" '.av_icon_string('search').'><span class="avia_hidden_link_text">'.__('Search','avia_framework').'</span></a>
    	        		   </li>';

    to

    	        $items .= '<li id="menu-item-search" class="noMobile menu-item menu-item-search-dropdown menu-item-avia-special">
    							<a href="shop/?s=" rel="nofollow" data-avia-search-tooltip="'.$form.'" '.av_icon_string('search').'><span class="avia_hidden_link_text">'.__('Search','avia_framework').'</span></a>
    	        		   </li>';
    • This reply was modified 6 years ago by hotspot01. Reason: update
    #1047019

    Anyone have any ideas?

    #1047485

    … :(

    #1047991

    Well finally after 2 days of scraping through google and trial and error i figured it out.

    wnet to searchform.php and changed the following

    $search_params = apply_filters('avf_frontend_search_form_param', array(
    	
    	'placeholder'  	=> __('Search','avia_framework'),
    	'search_id'	   	=> 's',
    	'form_action'	=> home_url( '/' ),
    	'ajax_disable'	=> false
    ));

    to

    $search_params = apply_filters('avf_frontend_search_form_param', array(
    	
    	'placeholder'  	=> __('Search','avia_framework'),
    	'search_id'	   	=> 's',
    	'form_action'	=> home_url( '/shop/' ),
    	'ajax_disable'	=> false
    ));
    #1048592

    Hi hotspot01,

    Glad you got it working for you! :)

    If you need further assistance please let us know.

    Best regards,
    Victoria

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