• I have a bunch of accordions for an FAQ page and I was wondering if there was a way to alternate between colours between every other accordion.

    I would imagine there isn’t as it’s all H5 (I think) but I just wanted to ask in case.

    Thanks for your time!

Viewing 3 replies - 1 through 3 (of 3 total)
  • If you feel comfortable with PHP, you could make a child theme and add some code that would add the appropriate classes to every other <h5> and then you could target the class in CSS with h5.even { ..whatever... };.

    Thread Starter Precidia

    (@precidia)

    I’m not super comfortable with it having only had one class on it ever a couple years back. I might give it a shot though, thanks!

    Nothing built in but I’ll consider adding something in the furture

    Kadence Themes

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Alternating colours for H5’ is closed to new replies.