79428795

Date: 2025-02-11 03:15:02
Score: 1
Natty:
Report link

By using :has() pseudo-class in CSS you can have conditons.

It will select parent cat div with condtion :has() method.

.category-menu li.current-cat-parent:has(.current-cat),
.category-menu li.current-cat-parent:has(.current-cat-parent) {
    background-color: #954c4c !important; 
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Altaf Malik