- This topic has 10 replies, 5 voices, and was last updated 6 years, 1 month ago by
Leo.
-
AuthorPosts
-
April 10, 2015 at 2:02 am #97206
elguavas
hi tom. it would be very nice if Disable Elements (plugin) settings were able to be optionally set as the default for all pages, for example if turning off Headline / Post Title could be set as a default.
April 10, 2015 at 9:34 am #97281Tom
Lead DeveloperLead DeveloperThat would be very cool.
I’m not sure if metaboxes can function like that (they’re meant to be only for that specific page).
However, you can use some simple CSS to remove the title from all pages:
.page .entry-header { display: none; }
April 10, 2015 at 3:32 pm #97439elguavas
yeah i guess the options would have to move somewhere else to be defaults, like to the layout section? anyway thanks for the css.
something else i’m wondering, is there any way to insert html at the top of the page that wordpress uses as the default posts page (above the posts) or at the top of a post category page (again above the posts)?
April 11, 2015 at 12:03 am #97569Tom
Lead DeveloperLead DeveloperDo you mean above your blog posts?
The Page Header add-on allows you to insert content/HTML above the posts inside “Appearance > Blog Page Header”.
You can also use GP Hooks with some conditionals in any of the hooks:
<?php if ( is_home() ) : ?> This will show up on your posts page (blog) <?php endif; ?> <?php if ( is_category('Category Name') ) : ?> This will show up on the "Category Name" category <?php endif; ?>
Let me know if that helps or not 🙂
April 11, 2015 at 8:08 pm #97856elguavas
[quote]Do you mean above your blog posts?
The Page Header add-on allows you to insert content/HTML above the posts inside “Appearance > Blog Page Header”.[/quote]
yes, i was aware of this, it works for the main blog page but it creates a separate header above the content area. i was talking about adding text inside the top of the content area of the default blog page.
[quote]You can also use GP Hooks with some conditionals in any of the hooks:[/quote]
yep, those two work as i wanted if i put them in the “Before Content” gp hook.
thanks.
April 11, 2015 at 8:13 pm #97857elguavas
oops, my bad, the second code excerpt above does exactly what i wanted for the default blog page (as the first one does for category pages). so, thanks tom, i’m covered for both cases. 😉
April 11, 2015 at 10:27 pm #97865Tom
Lead DeveloperLead DeveloperAwesome! 🙂
February 15, 2017 at 5:49 am #279061Jay
If the override code were added as prescribed, would I still be able to uncheck the page title disable?
February 15, 2017 at 6:25 am #279072Leo
StaffCustomer SupportNo the code will take precedence over the metabox so you won’t be able to uncheck them individually.
Hope this answers your questions.
August 25, 2017 at 5:29 am #373305Paul
I use the same Disable setting for my entire site:
Top Bar, Header, Primary Navigation, Featured Image / Page Header, Content Title – ALL Selected
Only the Footer is unchecked.How do I set this globally so I don’t have to change the setting for each page. I’m about to add thousands of products to woocommerce and I have to disable each of those elements each time.
(Moving this question to the FB page also)
August 25, 2017 at 9:00 am #373391Leo
StaffCustomer SupportHi Paul,
This post should help: https://generatepress.com/forums/topic/sections-set-to-disabled-by-default/#post-314143
Let me know.
-
AuthorPosts
- You must be logged in to reply to this topic.