the basic way is to
#li.cat-item-7
{ color: red; }
Now, change ‘7’ to the number you want, as many times as you want and ‘red’ to the color you want for that category like –
#li.cat-item-2
{ color: pink; }
#li.cat-item-8
{ color: green; }
Related Posts:
- How to create an automatic MultiColoumn MegaMenu with Categories WordPress
- How to add the category ID to admin page
- Create a full width responsive header image per page
- Category links suddenly started giving 404 errors
- Add category to custom post type automatically, using category slug
- Remove “Category Archives: title” at the top of a category page [duplicate]
- On Category page, How can I get the category ID?
- Hide post meta data on a specific category
- Any way to assign Post Categories and Tags to Links?
- How to get category URL with the slug?
- Is it possible to select and edit the way the most recent post from a certain category is displayed on the page?
- Different excerpt styles per category, but chronological
- How to view WordPress’ default category IDs?
- How to enable category hierarchy for links?
- Highlight wp_nav_menu when category is selected
- Category location styling
- Combining post categories and link categories?
- Displaying a full post instead of a slug per category?
- Link Attachment Image to Category
- Class active for Archive link – looped out
- Why do my categories redirect?
- Hide woocommerce category name from specific pages
- Hide woocommerce category name from specific pages
- Get category url in loop
- Older entries link within category page
- Inside a loop, how to change CSS class based on category name?
- Why do I have stray bullet from
- How to add custom color fields to the category edit page?
- Get paged category link programmatically
- Link To Child Category For A Post
- Different CSS class by category
- Simple way to style posts of a single category differently in the loop and in single
- Edit tag_id in category pages of dashboard
- Remove Archive | from Categories
- How to not display a category post on blog page?
- Link from navbar to categories
- How to get selected taxonomy or category ID if using custom walker?
- Custom css per category and per single post belong in each category
- Restrict CSS on one page
- javascripts files not linking to my category slugs?
- Show Secondary Sidebar on Category pages (archive)
- Check is category parent with ids from the childs – get_term_children
- wp_insert_link not working
- How to get sub-categories to display same look as there parents
- How to list posts from a sub-category that is listed in a parent category (more details below)?
- category description not showing in my woocommerce
- Inline If statement to echo CSS [closed]
- How to “remove” WordPress categories UL and make the list loop in a horizontal line?
- Show Subcategory Name Instead of Parent Category
- Link For Portfolio Categories
- Store All Post Categories In Array
- How to get the link of all categories
- Custom CSS to resize elements in multiple categories
- Featured image for links and categories
- Categories as selectable links on submission form
- Custom Woocommerce Category view
- Broken category styling
- How can i hide the authors box from a specific set of categories and post types?
- How to prevent page re-sizing for mobile browsers [closed]
- Displaying categories and subcategories without link
- How to get category slug link? ( include parent categories)
- How to define category ID in an array?
- How to hide my categories pages’ names, and how as well to reduce the space beween my sidebar’s widgets?
- How can I get the categories and subcategories separately?
- category id (term_id) in url instead of slug
- Elementor : display only one category in loop grid
- Get posts from specific taxonomy term
- limit a list of tags to one category [closed]
- How many categories can WordPress handle before performance suffers?
- Get sort order of product categories
- How to pull a list of posts in a category while exluding posts in subcategories of the category
- Exclude category from query
- Display posts of certain categories to specific user roles
- Display Related Posts by “Category” “by Author”
- Change post title if post has specific category
- Filter By Category Dropdown List With Custom Taxonomies
- How set all posts in wordpress in one category
- custom query for both category and pages using global $wpdb;
- url for posts for a date within a category
- Autolinking keywords in text with tags
- WP E-Commerce creating categories programmaticaly [closed]
- Different post slug based on archive
- How do I get conditional sidebars for specific category archives and posts
- Post does not show category wish just show latest post
- Woocommerce Category Sort Dropdown
- Is there a way to ‘archive’ inactive categories?
- Getting child category id (help with improving my code)
- Assign post category to a page by selecting category from page dashboard
- Different template for subcategories
- Hide category name using mod_rewrite
- Automatic Category selection
- DESC order not working when showing only child categories
- Search tag within category
- Custom WordPress category page showing all posts rather than the specified category
- Add 1 category more to If_in_category statement
- How to get child category list post in one template?
- Woocommerce custom taxonomy order
- Update wordpress menu with woocommerce products
- How to remove category and other tags from posts page
- Adding 400 product categories with their hierarchy to a navigation menu