Another question: I’ve tried this css and it doesn’t work. My goal is to put a background on tabs when they’re visited and set the text color to white
.woocommerce-tabs ul.tabs li.reviews_tab a:visited
Could you tell why it doesn’t work? And what can I do instead?
2) Afaik you can’t add a different styling to the visited tabs (at least not without rewriting/modifying the tabs script). The :visited selector won’t work because the browser actually doesn’t load a new website, etc. but the link is only used to trigger a jquery function. You can only apply a different styling to the active tab – use following code