- This topic has 10 replies, 2 voices, and was last updated 10 years, 1 month ago by
Tom.
-
AuthorPosts
-
July 2, 2016 at 5:44 pm #206102
Doug
Is there a way to Default the “Disable Elements” settings when creating new Pages or Custom Post Types so that “Content Title” and “Post Image / Page Header” are checked ?
Thanks.
DougJuly 2, 2016 at 11:40 pm #206134Tom
Lead DeveloperLead DeveloperHi Doug,
I don’t think this is possible.
There are ways to hide these elements from all pages though if that works for you?
July 3, 2016 at 4:25 am #206180Doug
Tom,
For my use case, hiding those elements would work. Could it be hidden for Pages and Custom Post Types, but not hidden on Posts?
Thanks.
DougJuly 3, 2016 at 9:04 am #206205Tom
Lead DeveloperLead DeveloperAbsolutely, you could do something like this:
.single-customposttypename .page-header-image-single, .single-customposttypename .entry-header, .page .page-header-image, .page .entry-header { display: none; } .single-customposttypename .entry-content, .page .entry-content { margin-top: 0; }Might need some tweaking, but it should be a start 🙂
-
This reply was modified 10 years, 1 month ago by
Tom.
July 3, 2016 at 9:45 am #206213Doug
Thanks Tom, that worked.
-
This reply was modified 10 years, 1 month ago by
Doug.
-
This reply was modified 10 years, 1 month ago by
Doug.
July 3, 2016 at 9:53 am #206224Doug
Oops. Just realized when I removed the checkboxes on the Disable Elements, I now see about 35 pixels of white space, but the Header text is gone.
Is there a Filter that I can set to remove the entire area?
-
This reply was modified 10 years, 1 month ago by
Doug.
-
This reply was modified 10 years, 1 month ago by
Doug.
July 3, 2016 at 11:39 pm #206349Tom
Lead DeveloperLead DeveloperI just adjusted the CSS above to deal with that space.
There is a filter you can use to disable the content title completely:
generate_show_titleMore info on filters here: https://generatepress.com/knowledgebase/filter-list/
July 4, 2016 at 6:42 am #206427Doug
Thanks Tom, the added CSS worked.
July 4, 2016 at 10:15 am #206479Tom
Lead DeveloperLead DeveloperYou’re welcome 🙂
July 6, 2016 at 9:40 am #206999Doug
Tom,
I originally inquired about this because I was using a CPT with over 200 posts. You currently have “Global” settings for Sidebar Layout and Footer Widgets in the Customizer “Layout” area.
Could you add in a future version of GP, “Global” settings for the Disable Elements in the Customizer “Layout” area? That way, the bulk of the settings could be preset and on a post by post basis it could be overridden.
Thanks.
DougJuly 6, 2016 at 9:46 am #207001Tom
Lead DeveloperLead DeveloperHi Doug,
Great idea – the only trouble with that is the options in the pages are set to disable those elements, which would make it tough to have options to enable them if the global setting was set to disable.
I’ll give it some thought.
-
This reply was modified 10 years, 1 month ago by
-
AuthorPosts
- You must be logged in to reply to this topic.