Tell us what you are trying to do?
I have build the archive template for a CPT "paper-opinion" but when I click on one of the Category of Tag, the result is not using the standard archive post template but another one.
=> When I tick the box 'Categories' and 'Tags' then my template, end up having both image
Question how can I make sure the Banner image is only showing only ONE banner and that "Papers & Opions" title get dynamically set depending on category (or tag) selected
Is there any documentation that you are following?
No
Is there a similar example that we can see?
no
What is the link to your site?
hidden link
I have granted Toolset temporary admin access
hidden link
Hi,
Thank you for contacting us and I'd be happy to assist.
I enabled the 'Archive Papers & Opinions' to be used on the 'Category' and 'Tag' taxonomy archives and was able to see the duplicated header banner section.
One of them seems to be coming from the theme, on the 'Category' and 'Tag' taxonomy archives.
To overcome this, I followed these steps:
1. I included a custom class name 'top-banner-row' to the row of the header banner section in the archive, so that it can be easily identified.
( screenshot: hidden link )
2. Next, I included the following custom CSS code in the archive's custom CSS section:
( screenshot: hidden link )
.top-banner-row {
display:none;
}
body.post-type-archive .top-banner-row {
display:block;
}
This code hides that header banner section, unless it is being displayed on a 'post type archive' page.
As a result, the banner section from the archive shows on the 'Papers & Opinions' post type archive, but not on 'Category' and 'Tag' taxonomy archives.
regards,
Waqar
Thank you Waqar, my issue is resolved now