• Hello,

    Thanks for a great plugin!
    I would like to know the best way to target each section using css based on whether it is open/collapsed – active/inactive.
    I have tried a number of selectors, the closest of which was targeting like so:
    h4 a[aria-expanded="false"]
    or
    h4 a[aria-expanded="true"]
    but when the page first loads, they are all set to true until you click on any.
    Have you got any suggestions?

    I would like to have a different background colour for active/inactive.

    Thanks in advance!
    Ben

    https://wordpress.org/plugins/xpert-accordion/

The topic ‘How to target only active or inactive sections’ is closed to new replies.