How do I create a full width (no sidebar) post for a custom post type?

Hello,

Once again, I'm really liking the service and I'm making use of many of the plugins!

I just figured out (using the plugin - Custom Post Templates) how to create custom post templates for regular posts, but I'd like to be able to have the same full width post template for a custom post type I created.

Comment 1

If you created the custom post template (singe-mycustompost.php) and you copied there contents of the single.php file, then you need to alter the HTML markup to fit your needs - this is: remove the sidebar and add CSS styles for this template.
Or you can use page.php template if you have one for full width and then replace the HTML markup in custom post template with it.
Third way is to do it with the CSS. Every post should have it's own class in body tag, for example "singe-my_custom_post_type" and with it you can hide sidebar for your custom posts:

How do you rate me?

Thank you for rating your experience!

We’re thrilled to hear you had a great experience with . Would you like to leave a comment about your experience?
Thanks for voting on your experience with , we’d love to get some feedback please.
Ohh no! We’re really sorry to hear you didn’t have a pleasant experience with , we’re always looking at how we can improve and would appreciate you provide some further feedback here please.
Type your feedback here

it's great that you had a positive one. Based on your experience in this ticket would you please be kind enough to rate us externally on: