Created
May 23, 2015 17:01
-
-
Save joedolson/4b6cda0f85ab530cb9f6 to your computer and use it in GitHub Desktop.
Social media sharing is about engagement; there's nothing engaging about a bunch of text links. We'll enqueue a stylesheet.
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
/* | |
* Register custom stylesheet for ID24 social sharing. | |
*/ | |
add_action( 'wp_enqueue_scripts', 'id24_register_styles' ); | |
function id24_register_styles() { | |
wp_register_style( 'id24-icomoon', plugins_url( 'fonts/icomoon.css', __FILE__ ) ); | |
if ( !is_admin() ) { | |
wp_enqueue_style( 'id24-social-share', plugins_url( 'css/id24.css', __FILE__ ), array( 'dashicons', 'id24-icomoon' ) ); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment