The following markup is rendered by WordPress’ the_posts_pagination()
:
<nav class="navigation pagination" role="navigation">
<h2 class="screen-reader-text">Posts navigation</h2>
<div class="nav-links">
<span class="page-numbers current"><span class="meta-nav screen-reader-text">Page </span>1</span>
<a class="page-numbers" href="http://example.com/blog/page/2/"><span class="meta-nav screen-reader-text">Page </span>2</a>
<a class="next page-numbers" href="http://example.com/blog/page/2/">Next page</a>
</div>
</nav>
Is it bad practice to use css to hide the screen reader text which prints 'Posts navigation' above these links? Or if I hide it in a media query for large screens is that acceptable?