Tagged: CSS, Shortcodes, Tags
Hello,
Im trying to add an “id” tag to the Accordion title shortcode. How can I achieve this? My purpose is to set the color attribute in css.
Thanks
Solved it by adding a “span” tag with the right id around the shortcode:
CSS:
#mission{color:#ff2819;}
#consistency{color:#f0a51a;}
HTML:
<span id=”mission”>[su_spoiler title=”Mission” ]
<h3>“Do we know where we are going?”</h3>
High performing organizations have a mission that tells employees why they are doing the work they do, and how the work they do each day contributes to the why….
[/su_spoiler]</span>
…It works but it colors all the text for that tab. Maybe there is a better way to do it?
Hi!
You can turn on custom CSS field for ALB elements – http://kriesi.at/documentation/enfold/turn-on-custom-css-field-for-all-alb-elements/ and give your element a custom CSS class :)
Regards,
Yigit