Tagged: x
-
AuthorPosts
-
May 27, 2016 at 8:28 am #1012907
armintzParticipantis it possible in X to add a fontawesome icon inside of a Button shortcode? Or is it only possible to add these below?
http://theme.co/x/demo/integrity/1/shortcodes/icons/
Thanks
May 27, 2016 at 9:56 am #1013040
JoaoModeratorHi There,
Please have a look at this link:
http://theme.co/x/demo/integrity/1/shortcodes/buttons/
Hope that helps,
Joao
May 27, 2016 at 9:59 am #1013041
armintzParticipantHi @Joao, I’m familiar with your documentation about buttons. But I don’t see anything on here about implementing Font Awesome icons.
I’ve tried adding an FA code inside an X button shortcode, but it didn’t show the icon. For example:
[button class="pink-to-white" size="x-large" href="/gallery" title="Learn More"]Learn More <i class="fa fa-paw" aria-hidden="true"></i>[/button]the FA portion being this:
<i class="fa fa-paw" aria-hidden="true"></i>May 27, 2016 at 1:08 pm #1013275
JadeModeratorHi there,
Because this requires a template change, I’d advise that you setup a child theme. This allows you to make code changes that won’t be overwritten when an X update is released. After your child theme is setup, please review how we recommend making template changes in Customization Best Practices.
Then add this code in the child theme’s functions.php file:
function load_fontawesome() { ?> <script src="https://use.fontawesome.com/2b9387c6dc.js"></script> <?php } add_action( 'wp_head', 'load_fontawesome', 99999 );Hope this helps.
May 27, 2016 at 5:16 pm #1013579May 27, 2016 at 10:36 pm #1013938
FriechModeratorWe’re delighted to assist you with this.
Cheers!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1012907 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
