Avada Forums Community Forum Using a Global Colour in a Shortcode

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • Martin
    Participant
    Post count: 3

    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

    Michael C
    Keymaster
    Post count: 549

    Sure, you can use global colors by using them as variables. So instead of the hex you would use var(–awb-color1).

    Martin
    Participant
    Post count: 3

    Genius! Thank you!

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.