Page Break button

Posted in: Newspaper
Post count: 60

Also how can I style first page button on mobile to be 100% width just like on desktop? https://prnt.sc/skcbzz

Post count: 35449

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!

Post count: 60

Ok, what about next/prev buttons that are broken on /3/ page? https://imgur.com/69TCHBH

Post count: 35449

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!

Post count: 7

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?

Post count: 35449

Hi Amitty,
I can help you with a custom css, for this I will need a link to your website where I can inspect a post with pagination. In this way, I can inspect the problem and I can make the necessary css for everything to look good.
Thank you!

Post count: 7

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?

Post count: 35449

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!

Post count: 7

Hi Calin,
Thanks, it worked.
One more thing, Can you please help me with the next/prev buttons that are broken on /3/ page? (it’s not caused by new CSS code, it was before)

Post count: 35449

Hi,
Yes, that is caused by this code

.single .page-nav a[href$="/2/"] {
width: 100%!important;
margin-left: 0!important;
}

You can remove it from your css and should be ok.

Post count: 7

Hi Calin,
I have removed the code as you mentioned but the problem still persists. Please help.

Post count: 35449

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

Post count: 7

After removing this code the problem on page 3 got solved but the size of the Next page button on the first page got reduced. I want that the Next page button on page 1 should remain to be as full width.

Post count: 35449

Hi Amitty,
Can you please provide a link to your website and also please let that code removed.
Thank you!

Post count: 7

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.

Post count: 35449

Hi,
What you can do is add this custom css
.page-nav {
display: flex;
}
body .page-nav a {
max-width: 100%!important;
width: 100%!important;
}

This should resolve the problem.
Let me know the results!

Post count: 7

Hi Calin,
It worked. You are amazing.
Thanks a lot for your help.

Viewing 17 posts - 26 through 42 (of 42 total)
The forum ‘Newspaper’ is closed to new topics and replies.