Skip Navigation

[Resolved] custom type template not working properly

This support ticket is created 3 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 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 - - 9:00 – 13:00
14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 - - 14:00 – 18:00

Supporter timezone: Africa/Casablanca (GMT+01:00)

This topic contains 5 replies, has 2 voices.

Last updated by Jamal 3 years, 5 months ago.

Assisted by: Jamal.

Author
Posts
#2167779

Hello,

I have a custom post type called «Centri» created using toolset. I created single page template for this type.
It was working fine for long time but now as I updated Toolset it breaks this template, paddings on elements are gone and the page doesn’t look right.
hidden link
view pass: podmornica

I also have live site hidden link that has earlier Toolset versions installed. On this old version the templates work as expected. A soon as I update Toolset the templates break. So on live site I’m holding the update until this issue is resolved.

#2167865

Hello and thank you for contacting Toolset support.

From what I can see comparing both sites, it seems to me like an issue with the Astra options, either on that post or on the content template.

Does this happen for other posts on the same post type?
Can you compare the Astra options between both sites on the post level and on the content template level?

If this does not help find the cause of the issue, would you allow me temporary access to this staging site? Your next reply will be private to let you share credentials safely.

I might also need access to the live site to check the actual options. Would that be ok?
** Make a database backup before sharing credentials to the live site. **

#2167869

Hello, templates are a little bit different now, because we implemented some changes on the "beta" version. But the problem is still there. If I update production site to the latest Toolset version, the template breaks.

#2167873

I can't really tell what's happening if I don't get a closer look at it. would you allow me temporary access to this staging site? Your next reply will be private to let you share credentials safely.

I might also need access to the live site to check the actual options. Would that be ok?
** Make a database backup before sharing credentials to the live site. **

#2167881

Please compare these options for the content template between the production and the beta sites hidden link

Or allow me temporary access to your live site to compare them. Your next reply will be private to let you share the live site's credentials safely. ** Make a database backup before sharing credentials. **

#2167945

Thank you for the credentials. I compared both sites a bit and I believe that the issues are not really coming from Toolset. In fact, all that the content template generates within the page is identical to the live site(HTML) and produces the same CSS styles. hidden link

I detected 3 issues that seem to come from the parent theme(Astra) which is updated to version 3.6.9 in the staging site instead of 3.6.5 on the live site:
- There is an issue with the padding that is caused by the absence of the "ast-separate-container" on the <body> tag of the staging site. This class adds the 30px padding for the main content of the page(article.ast-article-single).
- There are some sections of the page that are only generated on the live site. Check this screenshot hidden link
- There are some sections that are generated only on the live site. Check this screenshot hidden link

All of these differences are caused by the theme updated. I can't imagine how Toolset can affect these, especially because there is no custom code that uses Toolset. However, there are two hooks on the staging site that seems to affect the title on the staging site. This code:

add_filter( 'astra_advanced_header_title', 'remove_page_header_title' );
function remove_page_header_title() {
  return;
}

// premakne page title <em><u>hidden link</u></em>
add_filter( 'astra_the_title_enabled', 'display_page_title', 999 );
function display_page_title() {
  return true;
}

You can confirm all of my findings by testing the staging site with the previous Astra version(3.6.5) and disabling the above custom code.

I suggest that you reach out to the Astra theme's support team and ask for assistance. Please show tell them about my findings to help them quickly find the cause of the issue.

I hope this helps. Let me know if you have any questions.