Archived topic
How to remove side meta boxes from new/edit post page
4 replies · Started by Tom on May 24, 2017
Just jump on board with GP and digging in (good stuff!!).
For our CPT client pages we are stripping it down to just was is absolutely needed and I have removed all the standard right hand side meta boxes (like Featured Image). However the "Sidebar Layout" and "Footer Widgets" boxes are displayed with GP.
How do you disable those for certain Post Types?
Thanks,
-Tom
Hi Tom,
This should help: https://generatepress.com/forums/topic/remove-metabox-from-posts/#post-168515
Then you would have to use conditional tags for CPT: https://codex.wordpress.org/Conditional_Tags#A_Single_Page.2C_a_Single_Post.2C_an_Attachment_or_Any_Other_Custom_Post_Type
Let me know if you need more info.
This is a better option - no need for conditionals: https://generatepress.com/forums/topic/hide-screen-options-on-custom-post-type/#post-238774
That worked great, thanks!
I don't mind working in the code (hence my like of GP) but this would be a good enhance to have the chechbox option to not display meta boxes when creating a CPT like other areas (assuming that is possible).
Thanks again,
- Tom Mo.
Glad it helped! Thanks for the suggestion :)