Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Replace my theme's search bar
This topic contains 12 replies, has 2 voices, and was last updated by Ernest Marcinko 5 years, 2 months ago.
- AuthorPosts
- March 19, 2018 at 5:00 pm #17176
Hi,
Is there anyway to replace the search bar from my theme.
My theme does not use search.php, I think they put the code is inside the attachment.
March 19, 2018 at 5:04 pm #17180You cannot access this content.March 20, 2018 at 10:25 am #17188Hi!
If you could add temporary FTP access that would be the best I think. If not possible, you can upload your theme via zip, that is fine.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
March 20, 2018 at 6:08 pm #17192You cannot access this content.March 21, 2018 at 5:00 am #17201I dont have FTP access, can you see my theme file? Thanks
March 21, 2018 at 11:12 am #17203Hi!
Thank you for the upload. I think the search form is printed by the catalog_search_form() on lines 559-575 on the end of the functions.php file.
Replacing that function should be the solution. Try replacing that function with something like this:
function catalog_search_form(){ echo do_shortcode('[wpdreams_ajaxsearchpro id=1]'); }
Before editing, please make sure to have a full site back-up just in case!
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
March 24, 2018 at 2:43 pm #17242You cannot access this content.March 26, 2018 at 2:22 am #17255Hi,
Can I keep the outlook of my theme’s default search bar, but search using ajax search pro? And I want to add range filter to my theme’s search result.
March 26, 2018 at 8:35 am #17257Hi,
The plugin cannot effect the theme search result list, it has it’s own container to display the results. You can move that container if you want by using the results shortcode.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
March 26, 2018 at 9:39 am #17262Can you find where I should replace my theme’s search result?
I want to use my theme’s product catalog design.-
This reply was modified 5 years, 2 months ago by
ryochan819.
-
This reply was modified 5 years, 2 months ago by
ryochan819.
March 27, 2018 at 10:45 am #17305Hi,
I think that is simply the default WooCommerce results list, I am not sure. Maybe a file in the theme woocommerce directory overrides it? I am not sure, as I am not experienced with WooCommerce templating.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
March 27, 2018 at 11:23 am #17307Yes it is from woocommerce list. so is it possible to change it?
I think it is in content-single-product.php.
March 27, 2018 at 12:49 pm #17311I don’t know to be honest, you might have to check the WooCommerce documentation for that, as I am not familiar with the WooCommerce teplating system. However please note that this will not act as the woocommerce results list, as this is a separate container element.
One other possibility is to use the Magnifier and Return button actions to redirect to the WooCommerce results page.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
-
This reply was modified 5 years, 2 months ago by
- AuthorPosts
You must be logged in to reply to this topic.