[Resolved] Default Disable Elements Settings

Home Forums Support [Resolved] Default Disable Elements Settings

Home Forums Support Default Disable Elements Settings

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #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.
    Doug

    #206134
    Tom
    Lead Developer
    Lead Developer

    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?

    #206180
    Doug

    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

    #206205
    Tom
    Lead Developer
    Lead Developer

    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 ๐Ÿ™‚

    • This reply was modified 7 years, 8 months ago by Tom.
    #206213
    Doug

    Thanks Tom, that worked.

    • This reply was modified 7 years, 9 months ago by Doug.
    • This reply was modified 7 years, 9 months ago by Doug.
    #206224
    Doug

    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 7 years, 9 months ago by Doug.
    • This reply was modified 7 years, 9 months ago by Doug.
    #206349
    Tom
    Lead Developer
    Lead Developer

    I 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_title

    More info on filters here: https://generatepress.com/knowledgebase/filter-list/

    #206427
    Doug

    Thanks Tom, the added CSS worked.

    #206479
    Tom
    Lead Developer
    Lead Developer

    You’re welcome ๐Ÿ™‚

    #206999
    Doug

    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

    #207001
    Tom
    Lead Developer
    Lead Developer

    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.

Viewing 11 posts - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.