Site logo

Archived topic

Default Disable Elements Settings

10 replies · Started by Doug on July 2, 2016

Viewing posts 1–11 of 11

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.
Doug

Hi Doug,

I don't think this is possible.

There are ways to hide these elements from all pages though if that works for you?

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.
Doug

Absolutely, 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 :)

Thanks Tom, that worked.

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?

Thanks Tom, the added CSS worked.

You're welcome :)

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.
Doug

Hi 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 archived topic is closed to new replies.