Skip Navigation

[Resolved] How to create a custom display for a custom post type

This support ticket is created 5 years, 9 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
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 1 reply, has 2 voices.

Last updated by Christian Cox 5 years, 9 months ago.

Assisted by: Christian Cox.

Author
Posts
#1225993

I am trying to create a completely custom post type for my site.

It is currently displaying inside the content section of a page. Meaning my header, footer, container, title, date is still there.

I want to just create a custom post type with no design elements except for what I explicitly state. How can I do that?

#1226008

Hi, there's no simple way to do this if your theme includes these header, footer and container elements in the core templates. Toolset Layouts and Content Templates are designed to function within the area controlled by a WordPress function the_content(), and doesn't extend to control outside that area. So you could look for a theme that doesn't include those items, but then all the other pages of your site will look empty without the header and footer. You would have to create those. Or you could try to engineer your own PHP template file that doesn't include header and footer markup, and place it in a child theme using WP's template hierarchy: https://developer.wordpress.org/themes/basics/template-hierarchy/
That's tricky, especially for a commercially produced theme, and it's not something we support here because it requires significant custom code. Another option is to use custom CSS to show and hide pieces of content. For example, you can place some CSS in Layouts CSS or in your Content Template's CSS to hide an element with the id of "my-header":

#my-header {
  display:none;
}

Let me know if you have further questions about this.