Avada › Forums › Community Forum › Using a Global Colour in a Shortcode
Tagged: Shortcode, Global Color
-
AuthorPosts
-
Is it possible to reference a Global Color in a shortcode? I have the following as part of a Text box:
[fusion_fontawesome icon="fa-external-link-alt fas" link="#" linktarget="_blank" iconcolor="#ef8a12" iconcolor_hover="#ffffff" circle="" bg_size="-1" circlecolor="#ffffff" circlecolor_hover="#cf6814" circlebordersize="" circlebordercolor="#ffffff" circlebordercolor_hover="#cf6814"][/fusion_fontawesome]
I’d like my circlecolor_hover to be <Global Color 1> rather than the hex value itself, so if I change my Global Color 1 it will change here too.
TIA
Sure, you can use global colors by using them as variables. So instead of the hex you would use var(–awb-color1).
-
AuthorPosts
- You must be logged in to reply to this topic.