Also how can I style first page button on mobile to be 100% width just like on desktop? https://prnt.sc/skcbzz
Hi,
I just checked the pagination with my mobile and now is look that this is the only problem -> https://prnt.sc/skcbzz but is look that the code set in custom css section affect the desktop -> https://i.imgur.com/69TCHBH.png I tried my best to help you, but I can not make the first button to be full width without affect other pages, sorry!
Thank you for your understanding!
Ok, what about next/prev buttons that are broken on /3/ page? https://imgur.com/69TCHBH
Hi,
Thank is because of this css ->
.single .page-nav a[href$="/2/"] {
width: 100%!important;
margin-left: 0!important;
}
this css will apply 100% width to all elements that has the link end with 2 and this is the case where are two links with page 2 -> https://i.imgur.com/eW2nARU.png I search for a better css to apply only on first element, but unfortunately I was not able to find a solution, sorry!
Thank you for your undersatnding!
Hi Calin,
I want this same pagination style in my articles. After implementing the CSS codes you mentioned on this topic, I got the same issue: the Next page button on mobile appears small.
Do you have any solution now on how I can style the Next page button on mobile to be 100% width just like on desktop?
Sure, here you can see: bit.ly/rylelig
Please check the mobile version, the Next page button on mobile appears small.
Do you have any solution now on how I can style the Next page button on mobile to be 100% width just like on desktop?
Hi,
Please try this custom css
.page-nav.page-nav-post {
width: 100%;
}
Set the code in the theme panel > custom code > custom css > advance cess > phone css – https://i.imgur.com/9DndL2V.png
I hope this will help you!
Hi,
There seems to still be a similar code like that that is applied –
.page-nav a[href$="/2/"] {
width: 100%!important;
}
Please remove this one too – https://i.imgur.com/iX7vPCz.png
Hi Calin,
You can check here bit.ly/rylelig
And I have already removed that Code, after removing it the problem on Page 3 got solved but the size of the ‘Next page button’ on Page 1 got reduced. I want that the Next page button on page 1 should remain to be as full width.