Archived topic
Set no sidebars, content title, full width and page header standard for blogs
3 replies · Started by Anton on March 30, 2018
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 :)
- 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



