I am creating an archive for product taxonomy pages.
However, I want the products to have the same theme styling as on the default shop and category pages.
I will attach screenshots to show the comparison.
Toolset archive styling - hidden link
Theme styling for default shop and category pages - hidden link
You will notice on the screenshot that the theme styling has attractive buttons and a discount badge showing up.
By default when you add Toolset blocks for WooCommerce elements (e.g. the product image) then the styling comes from the styles applied in the editor to the block, and that won't necessarily look how your theme styles the same elements output by WooCommerce directly.
But each of Toolset's WooCommerce blocks has the option to display either the Toolset styling, or the default stying from WooCommerce and your theme, which may also be affected by other WC-related plugins.
Although this is a simple request, its application will involve some file and code manipulation- since it can be done through different ways. We'll try to guide you to the simplest workaround we have found.
First, the template you mentioned, which is coming from the Woodmart theme: hidden link, can be found in the wp-content/themes/woodmart/woocommerce/content-product_cat.php file. Then, as a possible solution, you could copy its content, and for instance, paste into the correspondent custom-taxonomy-{taxonomy}-{term}.php archive file. Please check this codex tutorial about taxonomy templates:
Unfortunately, we do not have a native feature to accomplish this task, and therefore, it is necessary to implement a custom solution. Please take a look on the documentation above and let me know if you still have doubts. Thank you!
I would like to request temporary access (wp-admin and FTP) to your site to take better look at the issue. You will find the needed fields for this below the comment area when you log in to leave your next reply. The information you will enter is private which means only you and I can see and have access to it.
Our Debugging Procedures
I will be checking various settings in the backend to see if the issue can be resolved. Although I won't be making changes that affect the live site, it is still good practice to backup the site before providing us access. In the event that we do need to debug the site further, I will duplicate the site and work in a separate, local development environment to avoid affecting the live site.
- Please make a backup of site files and database before providing us access.
- If you do not see the wp-admin/FTP fields this means your post & website login details will be made PUBLIC. DO NOT post your website details unless you see the required wp-admin/FTP fields. If you do not, please ask me to enable the private box. The private box looks like this: hidden link
Please, let me know if you need any additional details. Have a nice day.
Go to the above link and you will see the layout of the name > "Taxonomy layout"
The layout throws the template created on all categories, tags, and attribute archives.
For example - hidden link
I want the same template to be applied on any custom taxonomy I create with toolset.
You have the ability to copy the code of the layout by clicking on >> Edit >> classic editor>> copy code. But where should I paste this code in Toolset >> wordpress archives to make it work. That we need to find out.
I have created the taxonomy "Books" with toolset but this tempalte is not geting fired there.
We have checked this issue again, and unfortunately the workaround that I suggested before is not working, indeed. We've tested to make a copy of the 'taxonomy-project-cat.php' file inside the Woodmart directory, and rename it to 'taxonomy-books.php', but with no luck so far.
Regardless, I have found a similar thread in the Woodmart support forum: hidden link
In this case, they answered: 'In this situation, you will have to perform additional code customization for this particular taxonomy page. You can do this in the file inc/template-tags.php. Sorry, but we don’t have a quick solution for this and extra code customizations are out of themes support scope.'
The fact that theme is not picking up that archive template design for other taxonomies on its own and that their own support suggests that this will require code customization (and not something straightforward like renaming or putting some PHP files) confirms that currently this template is coded specifically for the 'product-category' taxonomy. Extending it to custom taxonomies will require detailed changes, most likely in multiple files.
At this point, since it is necessary to configure it with some code customization, I'm afraid it would be beyond the scope of this support forum, but we recommend that you check our contractors page, please take a look: https://toolset.com/contractors/
I hope that this explanation is clear and solves the question in our ticket. Thanks for your understanding.
If you need anything else don't hesitate to contact us.