Site logo

Archived topic

Automatically disable elements

10 replies · Started by Joel on July 25, 2017

Viewing posts 1–11 of 11

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?

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.

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!

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

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?

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

Try this:

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

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. :D

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

I realize that. I changed it to:

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

and now is working. Thanks!

This archived topic is closed to new replies.