Skip Navigation

[Resolved] Smartphone Pagination

This support ticket is created 5 years, 10 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

Tagged: 

This topic contains 6 replies, has 2 voices.

Last updated by BiernackiH1367 5 years, 9 months ago.

Assisted by: Nigel.

Author
Posts
#1245085

Hi
I need to now how it's possible to centre the pagination in smartphone mode.
I manage to center the pagination in desktop mode but on smartphone it is not. how can I do
thanks a lot
regards
harold

#1245100

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

You have a custom CSS style being applied that changes the display property on smaller screens to display: -webkit-inline-box which is responsible for the centering being broken on smaller screens.

I don't know what adds that custom CSS rule, but you either need to remove it or overwrite it.

#1245101

It wa added by some of toolset to center the pagination on desktop mode.
What kind of css I need to use to have pagination center in all mode (desktop, tablet and mobile)
thanks
regards
harodl

#1245647

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Screenshot 2019-05-20 at 07.48.48.png

In the screenshot you can see a block of custom CSS added to your site, I'm not sure where you added it, but you need to delete the section highlighted which is applying a different style on smaller screens.

#1245659
Capture d’écran 2019-05-20 à 09.08.32.png
Capture d’écran 2019-05-20 à 09.10.41.png

Hello
Thank you very much for your answer. I deleted the part Css indicated. Actually now it seems centered, but the pagination bar is not displayed in its entirety as you can see in the screenshots. What is the solution.
thanks
regards
Harold

#1245744

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

One option would be to change how the pagination links are output so that you don't show every page (some of them are replaced by ... dots) as described here: https://toolset.com/documentation/user-guides/views-pagination/#inserting-pagination-controls

But if you want to continue with the way they are currently output, then you need the list of pages to break onto the next line on small screens where there is not enough width to display them all, which you can do with the flex-wrap property, like so:

.list-inline {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}
#1250925

My issue is resolved now. Thank you!