Category Archive Will Not Hide

Hi, if you go to any blog category under

The “Category Archive” title will not disappear. I tried adding custom CSS from a bunch of different forums, but it’s still not working.

Here’s what I tried:

.archive .x-landmark { display: none; }

.archive .h-landmark {
display: none;
}

.category .x-header-landmark {
display: none;
}

.h-landmark span, .entry-title.h-landmark span {
display: none;
}

.category .page-header { display: none; }

Hey Andy,

There’s only one CSS that works and that is this:

.h-landmark span, .entry-title.h-landmark span {
display: none;
}

That is because your page is not an archive page. It’s just a regular page. See https://youtu.be/wlQ3InGA6sg. If you need to target a page, you need to use the class .page instead of .archive or .category.

If that does not work, the most common cause of that is broken CSS. Please test all your custom CSS in http://csslint.net/. Or to quickly check, remove all your custom CSS and only add that code above.

Thanks.

Hi. I tried using the class .page and it still didn’t work.

I also removed all of my other CSS and still not working.

It works when I inspect and add the display: none; code in, but in custom CSS, it doesn’t.

Hello @andyvnguyen97,

Thanks for updating the thread.

Please try using following code and see how it goes:

.h-landmark, .h-landmark.entry-title {
    display: none !important;
}

In above code I have used !important. To learn more about the same, please take a look at following article:

https://developer.mozilla.org/en-US/docs/Web/CSS/Specificity

Thanks.

Hi @Prasant

Nothing changed. Still there unfortunately.

Hi again,

I see the content on your site is being served by the cache, please purge the plugin’s cache first and check the site again. If it still doesn’t work then try adding the above code in your child theme’s style.css file. Make sure to clear the cache after adding the code.

Let us know how this goes!

It didn’t work, but it’s okay. I just renamed the Archives so it’s fine.

Glad you were able to resolve it :slight_smile:

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.