Home › Forums › Support › Archive and Categories – remove header, secondary navigation and content title
- This topic has 5 replies, 2 voices, and was last updated 7 years, 2 months ago by Leo.
-
AuthorPosts
-
February 14, 2017 at 12:36 am #278496Ted
Hello;
Just purchased your product the other day by recommendation of the elementor plugin/builder. However tonight I had a huge meltdown on the categories page, it appears to be the elementor plugin that caused the problem, but we are still working on that.
While we work on the problem I mentioned above, I would like to think this isn’t a GeneratePress problem and would like to keep working on the site with GeneratePress until I very good reason not too.
My question is, as I am a premium theme owner, I am able to disable elements on pages with the GP Premium 1.2.04 plugin. However, I have not figured out how turn these features off on the ‘archive’ and ‘categories’ pages of the blog. I’m guessing that ‘tags’ will be the same.
I have gone through the customizer, I am either missing the feature or maybe it doesn’t exist? What I have done for now as a work around is:
β’ remove the header image and set all the padding to zero
β’ set secondary menu to “–Select–” in the customizerI have plans to have pages in the future have the header section visible and will be in need of the secondary navigation. So my current work-around is only fine short term, but I’ll need another solution long term. I hope I’m just missing a setting somewhere.
Thank you.
February 14, 2017 at 8:39 am #278657LeoStaffCustomer SupportHi Ted,
Wordpress ignores all metaboxes on index pages (blog, archive etc…) by default.
Try this CSS below to hide those elements:
.blog .site-header, .blog .secondary-navigation, .blog .entry-title, .archive .site-header, .archive .secondary-navigation, .archive .entry-title { display: none; }
Adding CSS: https://docs.generatepress.com/article/adding-css/
Let me know if this does what you are after.
If it doesn’t can you provide a link to your site?
February 15, 2017 at 1:14 pm #279306TedThis seems to be doing the trick. I have inspected some elements an followed your pattern. I think I will get the results I need.
Just a quick question; there is mention of https://wordpress.org/plugins/simple-css/
Why or what are the advantages of placing the CSS in this plugin vs the CSS in the theme?
Thank you.
February 15, 2017 at 1:28 pm #279308LeoStaffCustomer SupportThe Additional CSS field was introduced in the recent version of WordPress so before that it wasn’t an option.
Personally I like to use Simple CSS because it’s much easier to look at the codes with colors than black texts. Also features like auto indent is convenient.
Simple CSS also offers metabox for each page/post so people can add page/post specific CSS without targeting them.
I would say try both and see which method you like π
February 16, 2017 at 12:40 am #279517TedThank you, Leo. This is good information, knowing that there wasn’t the functionality before and now I have two options. I will take your recommendation and try both in a local environment and see which I like best. π
I believe I will be able to achieve the look I would like based on the code you provided. I may need the naming convention of the tags section or something else, but so far I have been able to take your base model and inspect elements and adjust that… so far so good.
So, thank you for the support, I think we can consider this topic closed for now. Thank you.
Kind regards,
TedFebruary 16, 2017 at 7:35 am #279678LeoStaffCustomer SupportYou’re very welcome π Let us know if you have more questions!
-
AuthorPosts
- You must be logged in to reply to this topic.