[Theme: Listable] Changing the search to look in products instead of listings
-
Hi,
Website url: https://www.gmsmetals.com
I am very new to wordpress and themes. Trying to learn by doing and taking help.
We bought a theme: Listable.
I have it up and running but I want to change the search box on main page so that it searches the products instead of listings. I figured out where the code is by inspect element and comparison to theme templates/functions etc.
Here is what it currently says:
<div class="search-field-wrapper search-filter-wrapper<?php echo $has_search_menu ? ' has--menu' : ''; ?>"> <label for="search_keywords"><?php _e( 'Keywords', 'listable' ); ?></label> <input class="search-field js-search-suggestions-field" type="text" name="search_keywords" id="search_keywords" placeholder="<?php esc_html_e( 'What are you looking for?', 'listable' ); ?>" autocomplete="off" value="<?php the_search_query(); ?>"/>
Would be great if someone can help me to modify and explain how to change things here.
Also, I need to make the same change to all other pages where there is a search dialog box.
If someone can help me with how to change the “Any categories” drop down menu to show product categories instead of listing categories.
Thanks, the forums have been of great help.
Sid
- The topic ‘[Theme: Listable] Changing the search to look in products instead of listings’ is closed to new replies.