Tagged: enfold, search icon
Viewing 6 posts - 1 through 6 (of 6 total)
-
AuthorPosts
-
December 18, 2018 at 12:07 am #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=
December 18, 2018 at 12:16 am #1046647I 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 5 years, 11 months ago by hotspot01. Reason: update
December 18, 2018 at 9:52 pm #1047019Anyone have any ideas?
December 20, 2018 at 12:10 am #1047485… :(
December 21, 2018 at 3:30 am #1047991Well 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 ));
December 22, 2018 at 6:57 pm #1048592Hi hotspot01,
Glad you got it working for you! :)
If you need further assistance please let us know.
Best regards,
Victoria -
AuthorPosts
Viewing 6 posts - 1 through 6 (of 6 total)
- You must be logged in to reply to this topic.