Hi,
is there any way to add an icon font (Font Awesome library is already installed in my template) before accordion title?
I've tried several configurations with ReReplace, but it doesn't work, I don't know why.
The other solution is to add pseudo-class ::before to my title with icon's unicode character as property, but I'm limited to outlined icons (I need to display icons from the “solid” family).
Since titles are "enclosed" in a snippet, how can I add additional code to the accordion title?
Or add a <span> before the title with the required classes.
OK, but how do you put a tag before the title when the title is in a snippet? If I insert the tag before the snippet, the icon is outside the title.
What CSS and or classes you need for the icon is down to the Font Awesome implementation. That has nothing to do with Tabs & Accordions.
Because the problem could be solved if Font Awesome's unicode code also handled "solid" icons type, in this case I could use pseudo-class. But that's not the case, with their unicode I can display only "outlined" icons type, so I have to insert a tag (<i> or <span>) before the title..