Created
January 24, 2016 22:14
-
-
Save MuseMetrics/1454aaf5702bbe79eb77 to your computer and use it in GitHub Desktop.
(Genesis WordPress) Read More Excerpt Icon Link
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
/* | |
Adjusting the Read More Excerpt Link to be positioned underneath | |
the excerpt and have two icons floated on either side of the link. | |
*/ | |
/*Add Read More Link to Excerpts*/ | |
add_filter('excerpt_more', 'get_read_more_link'); | |
add_filter( 'the_content_more_link', 'get_read_more_link' ); | |
function get_read_more_link() { | |
return '... <br/><span class="more-wrap"><a class="more-link" href="' . get_permalink() . '">Continue Reading</a></span>'; | |
} |
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
/* | |
Adjusting the Read More Excerpt Link to be positioned underneath | |
the excerpt and have two icons floated on either side of the link. | |
*/ | |
/* ## Entries | |
--------------------------------------------- */ | |
.more-link { | |
background: url(images/icon.png) left center no-repeat, url(images/icon.png) right center no-repeat; | |
background-size: 40px 40px; | |
padding: 8px 53px; | |
} | |
.more-wrap { | |
display: block; | |
margin: 40px 0; | |
text-align: center; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment