[Resolved] Automatically disable elements

Home Forums Support Automatically disable elements

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #354765
    Joel

    I love using GeneratePress but one of the issues I have are my bloggers get confused about what elements they need to disable and don’t always remember to set the sidebar layout to no sidebar etc. The more blogs we post the more annoying this is getting.

    Is there a way, even if its through creating a child theme, to automatically disable the elements were not using on every post and set the right layout?

    GeneratePress 1.3.48
    GP Premium 1.3.1
    #354774
    Leo
    Staff
    Customer Support

    Hi there,

    You can set the global sidebar layout in the customizer: https://docs.generatepress.com/article/sidebar-layout/

    Disable element by default is in the plan 🙂 For now can you let me know which elements you would like to disable?

    I should be able to help with some interim solution for now.

    #354777
    Joel

    Thanks for the link, must have missed that one.

    At the moment we only leave the navigations on for posts. So we disable Top Bar, Header, Featured Image, Content Title & Footer.

    I look forward to this being a feature. Will be very useful to my workflow, thanks!

    #354783
    Leo
    Staff
    Customer Support

    Try this CSS solution for now:

    .single .top-bar,
    .single .site-header,
    .single .entry-title,
    .single .site-footer {
        display: none;
    }

    Adding CSS: https://docs.generatepress.com/article/adding-css/

    You can disable featured image in single posts in Customizer > Layout > Page Header > Single Post Header Location > Hide

    #356002
    Rodrigo

    Hi,

    I have the same problem, but this option didn’t worked for me.

    I want to hide featured image from single custom post type but not from category archive, also from posts from specific categories.

    How could I do that?

    #356045
    Leo
    Staff
    Customer Support

    Can you link me to a page where you want to hide the featured image?

    #356050
    Rodrigo

    Yes, sure. The website is http://moreiraballadares.com, but I want to hide it on single custom post type, like http://moreiraballadares.com/portafolio/confidencial/

    I already hide the featured image with “Disable elements” option, but don’t want my client do that all the time, so I want to hide them automatically, via CSS or PHP.

    #356052
    Leo
    Staff
    Customer Support

    Try this:

    .portafolio-template-default .page-header-image-single {
        display: none;
    }
    #356334
    Rodrigo

    I didn’t worked, but it did worked this way:

    .page-header-image-single {
    display: none;
    }

    Thanks. I think I’ll go with this solution. 😀

    #356353
    Leo
    Staff
    Customer Support

    That will hide it on all single posts and not just the CPT.

    #356505
    Rodrigo

    I realize that. I changed it to:

    .portafolio .page-header-image-single {
    display: none;
    }

    and now is working. Thanks!

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