forked from mirror/_s
Add a non-breaking space to _s_post_nav().
Sometimes the title length of a previous or next post would cause the arrow (larr/rarr) in the link to be wrapped to the next line. Adding a non-breaking space between the title and the arrow will stick it to the last word in the title.
This commit is contained in:
parent
4dad296c3a
commit
5fffb5e911
|
@ -52,8 +52,8 @@ function _s_post_nav() {
|
||||||
<h1 class="screen-reader-text"><?php _e( 'Post navigation', '_s' ); ?></h1>
|
<h1 class="screen-reader-text"><?php _e( 'Post navigation', '_s' ); ?></h1>
|
||||||
<div class="nav-links">
|
<div class="nav-links">
|
||||||
<?php
|
<?php
|
||||||
previous_post_link( '<div class="nav-previous">%link</div>', _x( '<span class="meta-nav">←</span> %title', 'Previous post link', '_s' ) );
|
previous_post_link( '<div class="nav-previous">%link</div>', _x( '<span class="meta-nav">←</span> %title', 'Previous post link', '_s' ) );
|
||||||
next_post_link( '<div class="nav-next">%link</div>', _x( '%title <span class="meta-nav">→</span>', 'Next post link', '_s' ) );
|
next_post_link( '<div class="nav-next">%link</div>', _x( '%title <span class="meta-nav">→</span>', 'Next post link', '_s' ) );
|
||||||
?>
|
?>
|
||||||
</div><!-- .nav-links -->
|
</div><!-- .nav-links -->
|
||||||
</nav><!-- .navigation -->
|
</nav><!-- .navigation -->
|
||||||
|
|
Reference in New Issue