Skip Navigation

[Resolved] I need to remove the sidebar and make the content full width

This thread is resolved. Here is a description of the problem and solution.

Problem:

Need to customize the full page display of the custom post type. Specifically, I need to remove the sidebar and make the content full width.

Solution:

Toolset content template works only in post content area, you can follow WP document to create a theme file single-{post-type}php, and customize it, remove the sidebar.

Relevant Documentation:

https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post

This support ticket is created 4 years, 1 month 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: Asia/Hong_Kong (GMT+08:00)

This topic contains 2 replies, has 2 voices.

Last updated by brianW-8 4 years ago.

Assisted by: Luo Yang.

Author
Posts
#1825543

Sorry it's taken so long to respond. Ok, I think I've got it all almost working! I've got the recursion and got it pulling things up properly. Two more questions:

1) I need to customize the full page display of the custom post type. Specifically, I need to remove the sidebar and make the content full width. Does Toolset have a way to do this or will it always display inside whatever the theme has set as the default single.php content area?

2) After I've created a relationship, I know I can attach related resources on the campus page with the "Add new Resource" but only custom fields are shown when creating. Is there a way to enable the "normal" fields, specifically, I need the user to be able to enter the main body of the post, which I'm using as the long description of the resource.

#1825547

Hello,

Q1) Yes, Toolset content template works only in post content area, you can follow WP document to create a theme file single-{post-type}php, and customize it, remove the sidebar:
https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
single-{post-type}.php – If the post type is product, WordPress would look for single-product.php.

Q2) No, there isn't such kind of built-in feature, you need to edit each "Resource" post and setup the normal fields.
You can also submit a feature request for it:
https://toolset.com/home/contact-us/suggest-a-new-feature-for-toolset/
Our developers will evaluate it

#1828931

My issue is resolved now. Thank you!