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?
- Control term order on a per-post basis
- Changing Top Level Items into Radio Buttons in the Categories Meta Box?
- How to create a widgetized sidebar for every category dynamically?
- Display the deepest child category from Category X (in loop)
- When using get_categories or similar, is it possible to filter results that contain certain Tags as well?
- Exclude subcategories from the url
- Select category in custom query
- Removed slug from CPT, now How/where do I hook the filter to the taxonomy term archive pages link?
- Search by word, category, tag, author
- Resolved – category-slug.php not working after wordpress migration
- How to retain the values from dropdown category lists after wrong form submission?
- Single_cat_title() print the title before text
- Sort posts by post_type in category.php template
- Force a user’s posts category
- Checking for two categories in query_posts
- get_the_categories filter returns an empty array
- Show category to visitors in different name or different language without changing basic category
- How to get latest posts from each category in regular order
- How to hide category name
- Keyword search in multiple categories
- Targeting Parent Category Pages
- Linking doctors posts to specific services for a medical practice
- Showing HTML if Post is In Certain Taxonomy Term
- Can I prioritize post categories for choice for breadcrumb trail?
- Category List with custom urls
- Load the last post of a category
- create function to call category name and slug
- Disable Category Taxonomy
- How to make product image inherit from category image
- Is it possible to set up blog categories without changing permalink structure
- How to display categories image in loop homepage WordPress
- Add subcategories posts to the counts column at the admin’s categories list
- Display one post on category.php: Wrong featured image
- date.php shows all posts. how to fix it?
- How can I get this code to only output one link?
- How to get Woocomerce categories count
- show posts from some category and sort by advance custom field