Site logo

Archived topic

Set no sidebars, content title, full width and page header standard for blogs

3 replies · Started by Anton on March 30, 2018

Viewing posts 1–4 of 4

Hi guys,

Using GP + Elementor Pro

I have a client who need to put in new blog posts. I use ACF to make his life easier, but I want to make a standard blog post for him.

I tried with with Anywhere Elementor, but can just change the format on the front end.

Is there any possibility to set all the sidebars, disable elements and page headers standard for all blog posts? So this client won't have any issues with this.

Thanks for making GP btw, I recommend it to everyone.

Hi there,

Not sure if I understand what you meant by setting them "standard"?

The global sidebar layout is here: https://docs.generatepress.com/article/sidebar-layout-overview/

Global disable element is a planned feature, for now you can use some snippets:
https://generatepress.com/forums/topic/sections-set-to-disabled-by-default/#post-314143

Page header: https://docs.generatepress.com/article/page-header-global-locations/

Let me know if this helps or I'm completely off track :)

It helps, thanks, but I didn't make myself clear enough.

Here are some screenshots.

Knipsel
Knipsel1
Knipsel2
Knipsel3

I want those settings standard when making a new post, so the client doesn't have to change them anymore.

Hope you understand what I mean :)

- Sidebar: can be set in the customizer: https://docs.generatepress.com/article/sidebar-layout/#single-post-sidebar-layout

- Content title: Try this PHP snippet

add_action( 'wp', 'tu_remove_all_titles' );
function tu_remove_all_titles() {
    if ( is_single() ) {
        add_filter( 'generate_show_title', '__return_false' );
    }
}

Adding PHP: https://docs.generatepress.com/article/adding-php/

- Full width: this CSS should do:

body.single .site.grid-container {
    max-width: 100%;
}

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

- Page header: https://docs.generatepress.com/article/page-header-global-locations/#post-types-%E2%80%93-single

This archived topic is closed to new replies.