Custom CSS hover in Categories

How i can add a custom a:hover ??? I change the background, but I have no idea how the structure is to add a: hover

i try this, but doesn’t work

[data-category-id=“7”] {
.category-box { background: #0088CC10; }
a:hover { color: #D52133 !important; }
}

For background i use this

.category-box[data-category-id="1"] { background: #0088CC10; }
.category-box[data-category-id="7"] { background: #231F2010; }
.category-box[data-category-id="8"] { background: #12a89d10; }
.category-box[data-category-id="5"] { background: #bf1e2e10; }
.category-box[data-category-id="9"] { background: #25AAE210; }
.category-box[data-category-id="6"] { background: #F7941D10; }
.category-box[data-category-id="10"] { background: #B3B5B410; }
.category-box[data-category-id="2"] { background: #80828110; }
.category-box[data-category-id="3"] { background: #E4573510; }
.category-box[data-category-id="4"] { background: #A461EF10; }

1 Like

I don’t know what your HTML looks like, can you provide a link to your category page?

1 Like
1 Like

Example for category 1:

.category-box[data-category-id="1"] {
    background: #0088CC10;
    .badge-wrapper.bullet:hover span.badge-category {
      color: red;
    }
  }
}
6 Likes

worked perfectly, thank you very much

2 Likes

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