Skip to content

Instantly share code, notes, and snippets.

@billerickson
Created March 8, 2018 20:39
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 billerickson/77d9b6a3d9a03674e5fc2e874215b8ca to your computer and use it in GitHub Desktop.
Save billerickson/77d9b6a3d9a03674e5fc2e874215b8ca to your computer and use it in GitHub Desktop.
/* 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;
}
}
<?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