Archived topic
two page headers on taxonomy page
6 replies · Started by Kristy on September 26, 2017
I've created a page header for a specific taxonomy. The problem is that the theme seems to be still created a page header inside the content as well. So I've got a Page Header that I've created to apply to the taxonmy (which i want), and also a page header on the taxonomy page that shows the page title, which is duplicate info (which i don't want). There must be an easy fix? :)
Can you link me to the page? Thanks!
Hi Leo. The site isn't public yet. Can i send it to you privately?
Yup through account issue here: https://generatepress.com/contact/
Please reference the topic. Thanks!
Ahh that's the page title.
Try this CSS:
.blog .page-header,
.archive .page-header {
display: none;
}
Adding CSS: https://docs.generatepress.com/article/adding-css/
ah, ok. i thought there might be another way or reason for the duplication. when you add a Page Header to a page or post you have the option to hide the title in the Disable Elements box. Might be useful to have that option on archive pages as well!
css it is. thanks Leo!
Yeah Wordpress ignores metabox on index pages (blog, archive) by default which is why we needed to use some CSS.
No problem!