Skip Navigation

[Resolved] Styling the pagination

This support ticket is created 4 years, 2 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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 4 replies, has 2 voices.

Last updated by Minesh 4 years, 2 months ago.

Assisted by: Minesh.

Author
Posts
#1817391
Screen Shot 2020-10-20 at 11.19.58.png
Screen Shot 2020-10-20 at 10.57.10.png

The problem is how to show pagination in a friendly manner. On the site, there are lots of pages for pagination.

For example, on this page, there are 53 pages of results : hidden link

The visitors can go to page between page 1 to 53 with < >. But between page 5 and page 50 (using the arrow < (for previous page) and > (for next page)), the current page number is not shown, so it gives the impression that the pagination is not working.

For example when page 48 is shown : -livres/?wpvproductcat=litterature&booklang=FR&wpv_sort_orderby=post_title&wpv_sort_order=asc&wpv_sort_orderby_as=string&wpv_view_count=24874&wpv_paged=48

Do you have any suggestions for this ? How can I achive the same kind of pagination (attached image)

Thank you in advance for your help.

#1818547

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Let me review first how exactly you added the pagination controls and for that I will require access details of your site.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

#1821111

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

I do not see any other way but if you want to change your pagination steps you can use the following shortcode:

[wpv-pager-nav-links output="bootstrap" previous_next_links="true" force_previous_next="true" text_for_previous_link="&#x2039;" text_for_next_link="&#x203A;" step="5" ellipsis="..."]

The above pagination will offer you pagination links after skipping 5 pages.
=> hidden link

The only way to know the current page is to use the shortcode: [wpv-pager-current-page] that will display the current page number:
=> https://toolset.com/documentation/programmer-reference/views/views-shortcodes/#vf-153244

#1822279
Screen Shot 2020-10-23 at 13.08.48.png

Hello Minesh,

It's still not very user friendly to navigate this way as the visitors won't know which page they are on and have the impression that the pagination is not working.

Isn't it possible to add the current page in the middle like this website with Toolset?

Example: hidden link

Thank you for your help.

#1822525

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

I just checked with my test site and I found that it's working as expected:
=> hidden link

You can access my test site with:
=> hidden link
user: demo
pwd: Admin@999

Can you please check above link and let me know if it works as expected? If yes:
- I found that with your staging site you are using outdated Toolset plugins.

We always recommend running your site with the latest stable release plugin version.

*** Please make a FULL BACKUP of your database and website.***
Could you please update ALL Toolset plugins to it's latest officially released version. You can download the latest plugin release from your accounts page:
=> https://toolset.com/account/downloads/

Can you please update ALL plugins and let me know if you still see the issue.