Skip to content

Instantly share code, notes, and snippets.

@joedolson
Created May 23, 2015 17:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joedolson/4b6cda0f85ab530cb9f6 to your computer and use it in GitHub Desktop.
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.
/*
* 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