Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author mlwilkerson

    (@mlwilkerson)

    Hi @claytonchase. Thanks for the feedback.

    Currently, no, there’s no color attribute for the shortcode. We’ve intentionally left the shortcode very basic. My sense has been that as we get to the point of building up the features in this plugin for how to style and customize icons, we’ll probably be more focused on providing capabilities for doing that natively within the Gutenberg editor. I wonder: would that work for you? Or do you another use case where only a shortcode would serve your purpose?

    In the meantime, you can definitely change icon colors, even if not with the shortcode. Part of the design of Font Awesome is that the icons inherit color. So one way to color an icon is to set the color of its parent element. For example, you could wrap a <span> around it, and the set the color that <span>, like this:

    <span style="color: green;">[icon name="coffee"/]</span>

    Thread Starter Clayton Chase

    (@claytonchase)

    Thanks for the response @mlwilkerson! That is a great solution. I love the idea of building more features that can be used through the Gutenberg builder. Thanks again!

    Plugin Author mlwilkerson

    (@mlwilkerson)

    OK, thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Icon Color Shortcode Parameter’ is closed to new replies.