-
-
Save hellofromtonya/766e10f627556034c7c2ffaf5f1532e8 to your computer and use it in GitHub Desktop.
Changing the adjacent link HTML
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
//return apply_filters( "{$adjacent}_post_link", $output, $format, $link, $post, $adjacent ); | |
add_filter( 'previous_post_link', 'genesis_sample_change_previous_link_html', 10, 5 ); | |
function genesis_sample_change_previous_link_html( $html, $format, $link, $post, $adjacent ) { | |
d( $html ); | |
$html = str_replace( '>«', 'class="button" >« Previous<br>', $html ); | |
d( $html ); | |
return $html; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment