Skip to content

Instantly share code, notes, and snippets.

@MuseMetrics
Created January 24, 2016 22:14
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 MuseMetrics/1454aaf5702bbe79eb77 to your computer and use it in GitHub Desktop.
Save MuseMetrics/1454aaf5702bbe79eb77 to your computer and use it in GitHub Desktop.
(Genesis WordPress) Read More Excerpt Icon Link
/*
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 '...&nbsp;<br/><span class="more-wrap"><a class="more-link" href="' . get_permalink() . '">Continue Reading</a></span>';
}
/*
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