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
- change the listing type of categories block?
- Disable Category Link
- Is There a Difference Between Taxonomies and Categories?
- List all subcategories from category
- How To Find Out WordPress Category Table in MYSQL?
- Add custom field to Category
- Get Category ID inside Category template
- Only one category per post
- WordPress Multisite – global categories
- Get the children of the parent category
- Get posts from sites in Multisite?
- WP REST API: filter by category 1 AND category 2
- How To Get Parent Category Slug of Current Post
- Display All Products by Category with WooCommerce
- What is the difference between a “tag” and a “category”?
- Is there an easy way to make a meta box have the tabs like the Categories meta box has?
- How to check if I’m on the last page of posts?
- Display posts from the same category using next/previous post link
- How would I get a taxonomy/category list inside a Gutenberg block?
- Can I set a default featured image for a category?
- Check if a post is in any child category of a parent category
- How to export and import taxonomies (category, tag and/or custom taxonomy) and their terms
- Force category choice before creating new post?
- Gutenberg editor add a custom category as wrapper for custom blocks
- WooCommerce: List All Categories
- How to get category and archive title?
- Get category ID from category slug (not working)
- How do I remove “Uncategorized” from posts with more than 1 category?
- Get rid of WordPress category, tag and author archives?
- Individual rss feed entry length for categories?
- How can I create a category landing page followed by pages of posts?
- Remove parent category from permalink? Basically only have the child category?
- Custom permalink structure leads to be 404 on pagination
- Retrieve Product category ‘NAME’ by product category ID – WooCommerce?