-
-
Save billerickson/77d9b6a3d9a03674e5fc2e874215b8ca to your computer and use it in GitHub Desktop.
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
/* BE Like Content | |
--------------------------------------------- */ | |
.icon-thumbs-up { | |
fill: $white; | |
stroke: $grey_5; | |
} | |
.be-like-content { | |
color: $slate_2; | |
@include font-sizes( 16px, 18px, 20px ); | |
display: inline-block; | |
font-weight: 600; | |
text-decoration: none; | |
.icon-thumbs-up { | |
display: block; | |
fill: $white; | |
stroke: $grey_5; | |
float: left; | |
width: 32px; | |
height: 32px; | |
margin-right: 16px; | |
transition: all 0.1s ease-in-out; | |
} | |
&:hover .icon-thumbs-up, | |
&.liked .icon-thumbs-up { | |
fill: $social_thumbsup; | |
stroke: $white; | |
} | |
&:hover { | |
text-decoration: none; | |
} | |
& > span { | |
transition: all 0.3s ease-in-out; | |
} | |
} |
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
<?php | |
/** | |
* Like Content Icon | |
* | |
*/ | |
function ea_like_content_icon( $text ) { | |
$icon = file_get_contents( get_template_directory() . '/assets/icons/thumbs-up.svg' ); | |
return $icon . $text; | |
} | |
add_filter( 'be_like_content_display_count', 'ea_like_content_icon' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment