Skip to content
This repository has been archived by the owner on May 5, 2021. It is now read-only.

Commit

Permalink
Added read more link
Browse files Browse the repository at this point in the history
Fixes:#69
  • Loading branch information
HardeepAsrani committed Jul 3, 2018
1 parent 28d3798 commit 79dc621
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
10 changes: 10 additions & 0 deletions functions.php
Expand Up @@ -295,6 +295,16 @@ function amadeus_excerpt_length( $length ) {
}
add_filter( 'excerpt_length', 'amadeus_excerpt_length', 999 );

/**
* Excerpt more link
*/
function amadeus_excerpt_more( $more ) {
return sprintf( '&hellip;<a href="%1$s" class="more-link">%2$s</a>',
esc_url( get_permalink( get_the_ID() ) ),
sprintf( __( 'Continue reading %s', 'amadeus' ), '<span class="screen-reader-text">' . get_the_title( get_the_ID() ) . '</span>' )
);
}
add_filter( 'excerpt_more', 'amadeus_excerpt_more' );

/**
* Footer credits
Expand Down
4 changes: 4 additions & 0 deletions style.css
Expand Up @@ -699,6 +699,10 @@ textarea {
.group-blog .byline {
display: inline;
}
.entry-content .more-link {
padding: 10px 0;
display: block;
}
.entry-meta .posted-on:after,
.entry-meta .author:after {
margin: 0 15px;
Expand Down

0 comments on commit 79dc621

Please sign in to comment.