Created
December 1, 2013 07:26
-
-
Save kriot1/a6e02ab19d9b1999e065 to your computer and use it in GitHub Desktop.
Customize Jetpack Share Buttons
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
//* Add Jetpack share buttons above post | |
remove_filter( 'the_content', 'sharing_display', 19 ); | |
remove_filter( 'the_excerpt', 'sharing_display', 19 ); | |
add_filter( 'the_content', 'sp_share_buttons_above_post', 19 ); | |
add_filter( 'the_excerpt', 'sp_share_buttons_above_post', 19 ); | |
function sp_share_buttons_above_post( $content = '' ) { | |
if ( function_exists( 'sharing_display' ) ) { | |
return sharing_display() . $content; | |
} | |
else { | |
return $content; | |
} | |
} |
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
/* | |
Jetpack Sharing | |
---------------------------------------------------------------------------------------------------- */ | |
.content div.sharedaddy div.sd-block { | |
border: none; | |
padding: 0; | |
} | |
.content div.sharedaddy .sd-content { | |
float: left; | |
margin-bottom: 32px; | |
} | |
.content div.sharedaddy a.sd-button { | |
border: none !important; | |
box-shadow: none; | |
} | |
.content .sd-social-icon-text a.sd-button > span, a.sd-button > span { | |
opacity: 1; | |
padding: 6px 12px; | |
} | |
.content a.sd-button > span { | |
background-image: none !important; | |
background: #111; | |
border: none; | |
color: #fff; | |
font-size: 12px; | |
font-weight: 400; | |
letter-spacing: 1px; | |
text-transform: uppercase; | |
} | |
.content a.sd-button:hover > span { | |
background: #1dbec0; | |
} | |
.sd-content .sd-button span.share-count { | |
color: #cdf593 !important; | |
font-size: 100% !important; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment