Created
June 10, 2014 03:21
-
-
Save aprea/b1f74bfa5e16b41c421b to your computer and use it in GitHub Desktop.
Advanced Excerpt - right align "read more" link
This file contains hidden or 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 | |
function custom_advanced_excerpt_read_more_link_template( $template ) { | |
/* | |
* The Advanced Excerpt plugin code looks like this | |
* apply_filters( 'advanced_excerpt_read_more_link_template', ' <a href="%1$s" class="read-more">%2$s</a>', get_permalink(), $read_more ); | |
*/ | |
return sprintf( '<p style="text-align: right;">%s</p>', $template ); | |
} | |
add_filter( 'advanced_excerpt_read_more_link_template', 'custom_advanced_excerpt_read_more_link_template' ); | |
add_filter( 'advanced_excerpt_allow_tags_to_append_into', '__return_empty_array' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment