Hi there,
I’d like to add an SVG icon to the Accordion on two particular pages, to the right of the toggle – before the title (see screenshot).
What would be your recommendation? As a background image in CSS?
Any advice greatl appreciated!
Jas
Ok, I’ve experimented, & seem to be able to achieve what I’m after – here’s the code I’ve used so far, probably far from ideal, so feedback on this would be great.
.page-id-4396 section.av_toggle_section:nth-child(1) > div:nth-child(1) .toggler {
background: url(https://www.cdc.org.nz/wp-content/uploads/svg-icons/maximising-earthquake-recovery-opportunities-icon.svg);
background-size: 39px 30px;
background-repeat: no-repeat;
background-position: 35px 5px;
}
.page-id-4396 section.av_toggle_section:nth-child(1) > div:nth-child(1) p {
padding-left: 90px;
}
Thoughts?