Skip Navigation

[Resolved] Post Type Layout

This support ticket is created 4 years 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
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 5 replies, has 2 voices.

Last updated by asadR 4 years ago.

Assisted by: Christian Cox.

Author
Posts
#2090921

Hi,

I have two identical Post Types: Charities and Company(s). I duplicated Charities, Views and UX Blocks to create Company(s) Post Type.

For some reason the formatting for each post type is different. Example:
Here is a page that is showing all the charities post type using views shortcode: hidden link - This layout is full width.
but here is a page that is showing all the Company(s) post type using views shortcode: hidden link - As you can tell this layout is different and boxed.

Similarly, here is a single Charities page: hidden link - It is also full width.
Here is a single Company(s) page: hidden link - Not full width and shows sidebar for some reason.

How can I make the template for Company(s) same as Charities without using custom CSS?

Thank you

#2091023

Hello, I can see you are using a child theme of Flatsome. Does your child theme include separate PHP templates for single Charity posts and single Company posts, like single-company.php and single-charity.php? That could account for the difference between the overall layouts in these single posts.

Regarding the two Pages with different layouts, is it possible there are different theme options or page options applied to these pages that would cause this? I can see different classes applied to the body tag, and usually that indicates different PHP templates, different page attributes, or different theme options applied to each post.

What about Content Templates, are you using different Content Templates to display these Pages, or the same Content Template, or no Content Template?

#2092005

Hi,

Thank you for your detailed response.

I took over the website from previous developer, but after reviewing the directory you are right, I see single-charities.php. I can duplicate this for single-company.php but how would I connect toolset view to it?

I assume these two php files control how individual charity and company post types are displayed correct? (Ex: hidden link)

Thank you

#2092019

I can duplicate this for single-company.php but how would I connect toolset view to it?
It depends on how the template is encoded, but usually there is nothing special you need to do. WordPress will automatically use this PHP template to display single Company posts (if the post type slug is company), and Toolset's Content Templates will be displayed inside the single-company.php template automatically.

I assume these two php files control how individual charity and company post types are displayed correct?
Yes, along with Toolset's Content Templates.

#2092907

Thank you for your quick response and help. Appreciate it.

#2092909

My issue is resolved now. Thank you!