Skip Navigation

[Resolved] How to make archives look like the theme format

This support ticket is created 2 years, 5 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Sao_Paulo (GMT-03:00)

This topic contains 9 replies, has 3 voices.

Last updated by Mateus Getulio 2 years, 4 months ago.

Assisted by: Mateus Getulio.

Author
Posts
#2530049

Tell us what you are trying to do?

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.

#2530235

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+01:00)

Hi there

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.

See this page for a description: https://toolset.com/course-lesson/selecting-woocommerce-blocks-output-type/

In your case it sounds like you will want to choose the WC-styling option.

#2530307
Theme settings.PNG

Please tell me how to achieve what I want.
Here's the screenshot of what I found regarding theme settings but still have no luck.

I see documentation for my theme on the toolset site - https://toolset.com/documentation/recommended-themes/using-toolset-with-the-woodmart-theme/

So I hope you have a quick and defined solution for this simple thing.

In fact, I don't even see this setting anywhere - https://toolset.com/wp-content/uploads/2020/09/woocommerce-blocks-styling-selector-1.png

#2530559

Mateus Getulio
Supporter

Languages: English (English )

Timezone: America/Sao_Paulo (GMT-03:00)

Hey there,

Thanks for your reply.

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:

https://developer.wordpress.org/themes/template-files-section/taxonomy-templates/, specially the section: https://developer.wordpress.org/themes/template-files-section/taxonomy-templates/#custom-taxonomy

We also have a related documentation that might be helpful in order to achieve the desired results, kindly check it: https://toolset.com/documentation/customizing-sites-using-php/creating-taxonomy-term-archives/

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!

Kind regards,
Mateus.

#2531229

I copied the content of "content-product_cat.php file" and pasted it into a new file and saved it as "taxonomy-books-alpha.php"

Because my taxonomy is "books" and term is "alpha" >> hidden link

And then I saved the file in the same folder.

But there was no change in frontend!

#2531407

Mateus Getulio
Supporter

Languages: English (English )

Timezone: America/Sao_Paulo (GMT-03:00)

Hello,

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.

Privacy and Security Policy

We have strict policies regarding privacy and access to your information. Please see:
https://toolset.com/privacy-policy-and-gdpr-compliance/#data-shared-with-our-support
**IMPORTANT**

- 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.

#2532183

Here is the sandbox site - hidden link

I have created a new layout here - hidden link

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.

#2532317

Mateus Getulio
Supporter

Languages: English (English )

Timezone: America/Sao_Paulo (GMT-03:00)

Hey there,

I checked this out but so far I couldn't find a fix for it.

I asked my colleagues to have a look at this issue in order to see if there's anything I'm missing.

I'll come back here as soon as one of my colleagues reply back to me (which it shouldn't take long).

Thanks,
Mateus.

#2532333

Okay. I wait.

#2533187

Mateus Getulio
Supporter

Languages: English (English )

Timezone: America/Sao_Paulo (GMT-03:00)

Hey there,

Thanks a lot for your patience.

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.

Best,
Mateus.