Forums › Forums › Search & Filter Pro › Custom template setting doesn't work
- This topic has 3 replies, 2 voices, and was last updated 9 years, 10 months ago by Ross.
-
Anonymous(Private) January 21, 2015 at 12:29 pm #10685
Hello,
I have just installed a Pro version, but I’m not able to set a custom template for displaying results. If I fill in the input in search form settings and click to update the form, the text from the input has gone.
This is my website – http://www.fobsession.com/shop/ (Woocommerce). I just need to display the results in the same way like at the page above.
Thanks, James
Ross Moderator(Private) January 21, 2015 at 12:34 pm #10686Hey James
If the template filename is disappearing then it means the plugin can’t find your template (I need to improve the feedback here).
The template must be located in your theme folder and the path must be relative to your theme folder.
So for woocommerce it would be something like:
woocommerce/product-archive.php
If you do not have the woocommerce files in your theme folder then follow their instructions:
http://docs.woothemes.com/document/template-structure/
Thanks
Anonymous(Private) January 21, 2015 at 1:04 pm #10695Thank you very much for quick reply, Ross. So I tried to add /woocommerce/archive-product.php to custom template field and it’s working now. Anyway, there si another problem. The sidebar disappears when results are loaded. So I can see the results, but no sidebar with filtering. I’m using exactly same template as shop homepage.
Thank you very much,
JamesRoss Moderator(Private) January 21, 2015 at 1:27 pm #10696Hi James
This is a bit out of the realm of the plugin support.
Basically what your theme is doing is loading a sidebar on the woocommerce product page, but not on the S&F results page.
You can try one setting, under “advanced” tick “force is_search to true” – if this doesn’t work be sure to disable it after testing.
In this case, you must duplicate your
archive-product.php
(because we will be making customisations) and use this as your template. You need to update this new template to show a specific / different sidebar (will require some coding).For info on how to create a sidebar/widget area see – http://www.wpbeginner.com/wp-themes/how-to-add-dynamic-widget-ready-sidebars-in-wordpress/
Most people prefer to use a plugin though, something like widget logic – https://wordpress.org/plugins/widget-logic/
Thanks
-
AuthorPosts