Is there a way to apply a border around the WordPress pagination that starts from the first number and ends at the final number in the pagination sequence? The current structure of the WordPress pagination includes:
<a class="prev page-numbers"></a>
<a class="page-numbers">1</a>
<a class="page-numbers">2</a>
<span class="page-numbers current">3</span>
<a class="page-numbers">4</a>
<a class="next page-numbers"></a>
I have attempted to add a div element after the .prev class and before the .next class using jQuery, but it appears to also include a closing div which causes them not to be wrapped. Are there any alternative methods to achieve this?