[Resolved] YooTheme does not display archives styled by Toolset
This thread is resolved. Here is a description of the problem and solution.
Problem:
The Theme YooTheme which I use for my website seems not to be working nicely with Archives styled by Toolset.
The contents I add in Toolset's archives won't apply to what I see on the Front end.
Solution:
YOOtheme Pro Developers released with YOOTheme 1.20.2 a fix for this compatibility issue with Toolset.
The native WordPress loop is now used in the Theme's template files.
The archive layout created in Toolset will now correctly be displayed on the archive pages.
This support ticket is created 5 years, 8 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.
2. Can you clarify if the Services custom post type is your own or a CPT from the theme?
3. ) Temporary Access to your system
Please provide access to your system (wp-admin and ftp) so that I can further investigate this particular problem. The fields to provide this data are included in a private section that I will open for your next response. You can find it above the comments area. The information in this private section is only visible between WPML Support and you.
1. Can you please confirm that you have followed the instructions detailed in this article?
Yes, I have followed the instructions while creating the archive page.
2. Can you clarify if the Services custom post type is your own or a CPT from the theme?
The Service custom post type is my own and I have created it using Toolset Types
3. ) Temporary Access to your system
I have sent the login details in the private fields
Languages: English (English )Spanish (Español )French (Français )
Timezone: Pacific/Niue (GMT-11:00)
Hello
I´m sorry for the delay in responding. I believe this is a theme issue and am consulting with some senior colleagues. Thank you in advance for your patience
I can see that your theme has integrated a "Theme builder" and it is using the settings defined here to create the archive layout:
Appearance > Customize > Layout > Blog
Once the layout is created, the associated content template that is defined in the page profile is used
I have replicated this behaviour on a sandbox site with the Yootheme here: hidden link
On this sandbox site, I have loaded my test CPT - Book(s). Here is the link for the archive view: hidden link
As you will see, if you change the active theme between Yootheme and Twenty Sixteen, the view is either acknowledged or not. From this testing, I can conclude that the theme is bypassing the actions that Toolset is filtering/hooking on to load/display the defined archive layout/view.
Yes, I do agree with this analysis.
The theme is is bypassing the actions that Toolset is filtering/hooking on to load/display the defined archive layout/view
Is there a way to stop this and to make the view applicable on the archive page by preventing the theme from bypassing Toolset's actions?
Languages: English (English )Spanish (Español )French (Français )
Timezone: Pacific/Niue (GMT-11:00)
Hello
There may be a way, but this would involve some custom coding on either the theme´s end or on the Toolset side. I am conferring now with some senior supporters to know the best way to move this issue forward.
It maybe that you will need to look for 3rd party contracting or, it can be that we escalate the issue to our comaptibiltiy team. Please be patient while I get an indication on how to proceed.
Languages: English (English )Spanish (Español )French (Français )
Timezone: Pacific/Niue (GMT-11:00)
Hello
I have confirmation that this is indeed a compatibility issue with YooTheme.
Specifically, for Toolset Archives to kick-in, it is required that the archive.php of the theme contain a WordPress Codex compliant "loop" of the type:
It is clear from reviewing the code in archive.php, this is not the case for YooTheme. Here is the suggested way forward:
1. Inform the author about the situation
Then provide the author´s contact details to us and we will advocate your request for a solution and be available to support them. Note that we will not "fix " anything, we will just enter in contact with the author, answer questions and ask for eventual updates. This is why it is important that *you* contact the author yourself first.
2. Create a new archive.php in your child-theme.
You may have better outcomes by including a new archive.php in your child theme that will use a standard loop for your CPT. This will require coding probably best done with a 3rd party contractor: https://toolset.com/es/contractors/
I believe this might be your best option. I wait for your feedback.
Thanks for your reply.
I have contacted the author to inform them about this situation and to ask for their contact details.
I will send their contact details as soon as they reply.
Languages: English (English )Spanish (Español )French (Français )
Timezone: Pacific/Niue (GMT-11:00)
Hello
THis is good news. We are already preparing to escalate this to our compatibility team.
The final thing they ask from you is the original zip archive of the theme. (e.g. the zip file that you downloaded/purchased from YooThemes)
I am opening the private area for this. Please only include a download link to a platform where you have previously uploaded the zip file to. Use a service like FileTransfer, WeTransfer, Dropbox...or similar.