After creating pagination for 1 to 10 posts, I encountered an issue where clicking on page 1 or 2 does not show as the visited or active page. Any advice on how to fix this?
Below is the CSS code:
.post-pagination {
margin: 100px auto;
text-align: center;
width: 100%;
float:left;
}
.button_1, .button_2, .button_3, .button_4, .button_5, .button_6, .button_7, .button_8, .button_9, .button_10 {
border: 2px solid #f4655f;
font-weight: 900;
padding: 5px 40px;
color:#f4655f;
transition:ease 0.69s !important;
}
.button_1:hover, .button_2:hover, .button_3:hover, .button_4:hover, .button_5:hover, .button_6:hover, .button_7:hover, .button_8:hover, .button_9:hover, .button_10:hover {
background: none repeat scroll 0 0 #f4655f;
color: #fff;
text-decoration: none;
}
.post-pagination a {
color:#4876ff;
float: left;
position:relative;
left: 7%;
list-style:none;
margin: 0.5px;
}
Here is the jQuery code:
<script style='text/javascript'>
jQuery(document).ready(function(){
jQuery('.button_1').click(function(){
jQuery('.content_1').show();
jQuery('.content_2').hide();
jQuery('.content_3').hide();
jQuery('.content_4').hide();
jQuery('.content_5').hide();
jQuery('.content_6').hide();
jQuery('.content_7').hide();
jQuery('.content_8').hide();
jQuery('.content_9').hide();
jQuery('.content_10').hide();
return true;
});