Home > Software design >  How to remove Wordpress taxonomy description from paged pages
How to remove Wordpress taxonomy description from paged pages

Time:07-07

I'm attempting to remove or prevent the from being added to is_paged() taxonomy pages (tag and category pages).

I'm not sure if it is possible to remove, however is it possible to set a condition that this class is only added is the page is NOT is_paged(). This will prevent the from being displayed on page 2, page 3, page 4, etc of my category and tag pages.

I only want the to be present on the main page (or page 1) of the relevant category and tag pages.

I need to create something along the lines of:


if ( is_archive() && !is_paged()) {
Remove <div ></div> 
}

Any suggestions on how to go about this?

CodePudding user response:

When I click on the category, it leads to the category page where the website is showing the category name with its description. I want to remove the description under the category name. My website URL is: bestlaptopsexpert.com

CodePudding user response:

if not mistaking does the desciption under the catagory name has the class entry-meta.

if you give this class in your css the property

display:none;

than it will be hidden from your pages.

so trow the next line in your css and it should be gone.

.entry-meta{display:none;}    
  • Related