This creates a shortcode containing the HTML representation of a Font Awesome heart icon.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Creates a shortcode that displays a Font Awesome heart icon | |
add_shortcode('fa-heart', 'gsc_shortcode_faheart'); | |
function gsc_shortcode_faheart( $attr ){ | |
return '<i class="fa fa-heart"></i>'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment