Fixing non-linked press / next links
This commit is contained in:
parent
c21e35a3ab
commit
834d93bf9f
|
@ -122,7 +122,6 @@ function understrap_category_transient_flusher() {
|
||||||
add_action( 'edit_category', 'understrap_category_transient_flusher' );
|
add_action( 'edit_category', 'understrap_category_transient_flusher' );
|
||||||
add_action( 'save_post', 'understrap_category_transient_flusher' );
|
add_action( 'save_post', 'understrap_category_transient_flusher' );
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Display navigation to next/previous post when applicable.
|
* Display navigation to next/previous post when applicable.
|
||||||
*/
|
*/
|
||||||
|
@ -146,12 +145,10 @@ if ( ! function_exists( 'understrap_post_nav' ) ) :
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
if ( get_previous_post_link() ) {
|
if ( get_previous_post_link() ) {
|
||||||
previous_post_link( '<button class="nav-previous float-xs-left btn btn-sm btn-secondary">%link</button>', _x( '<i class="fa fa-angle-left" aria-hidden="true"></i>
|
previous_post_link( '<span class="nav-previous float-xs-left">%link</span>', _x( '<i class="fa fa-angle-left"></i> %title', 'Previous post link', 'understrap' ) );
|
||||||
%title', 'Previous post link', 'understrap' ) );
|
|
||||||
}
|
}
|
||||||
if ( get_next_post_link() ) {
|
if ( get_next_post_link() ) {
|
||||||
next_post_link( '<button class="nav-next float-xs-right btn btn-sm btn-secondary">%link</button>', _x( '%title <i class="fa fa-angle-right" aria-hidden="true"></i>
|
next_post_link( '<span class="nav-next float-xs-right">%link</span>', _x( '%title <i class="fa fa-angle-right"></i>', 'Next post link', 'understrap' ) );
|
||||||
</span>', 'Next post link', 'understrap' ) );
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</div><!-- .nav-links -->
|
</div><!-- .nav-links -->
|
||||||
|
|
Reference in New Issue