- This topic has 7 replies, 3 voices, and was last updated 5 years, 4 months ago by
Tom.
-
AuthorPosts
-
November 10, 2020 at 10:55 am #1525792
qpaq
Hi,
My archive pages for categories, custom post types and tags… they display the meta name (category,tag etc) twice on the listing page; one is above the featured image as UL list, and the other one as it should be underneath the post.
How can I get rid of the repeating meta information of posts in the archive pages and how can I style this page without using WP Show posts as described by here.
https://docs.wpshowposts.com/article/use-static-pages-as-category-archives/
November 10, 2020 at 7:17 pm #1526139Elvin
StaffCustomer SupportHi,
They don’t seem to display the same thing.
The one above the featured image displays the content type(custom taxonomy perhaps?) while the one on the bottom is the default category used by WordPress.
To clarify: Which one of the two would you like to be removed?
The one above the featured image is added inside your Header element.
The one below is added by default by the theme which you can easily remove by going to Dashboard Appearance > Customize > Layout > Blog.
Click on the Single tab and uncheck “Display post categories”.
November 11, 2020 at 4:28 am #1526526qpaq
Hi Elvin, I would like to get rid of the first, the ones above the images. However, there is no sign of the category or content-type meta in the header elements I could find. the category archive pages also have the same problem.
November 11, 2020 at 9:41 am #1527160Tom
Lead DeveloperLead DeveloperHi there,
I’m not sure I’m seeing an issue on that page – can you share a screenshot of what you’re seeing?
November 11, 2020 at 9:53 am #1527181qpaq
Hi Tom,
I got rid of them with the following lines. I don’t know if that was the right way but it seems working. (before it was like this https://www.dropbox.com/s/03y4q5osxxtp0s5/Customise%20Projects%20Archives%20-%20ArkiBee%202020-11-11%2017-51-33.png?dl=0)
/* Archive pages double Category tag display */ .post-categories { display: none; } /* End pages double Category tag display */November 11, 2020 at 2:16 pm #1527468Tom
Lead DeveloperLead DeveloperThat looks like you have a function added to your website that’s adding the categories into the featured image container.
If you find and remove that function, you shouldn’t need the CSS.
November 12, 2020 at 3:40 am #1528004qpaq
I’ve found it. Thanks Tom, this issue is resolved. You and your team are great!
November 12, 2020 at 10:11 am #1528754Tom
Lead DeveloperLead DeveloperGlad we could help 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.