Skip Navigation

[Resolved] changing title for pagination links (for accessibility)

This thread is resolved. Here is a description of the problem and solution.

Problem:

The link titles of pagination links are just the number of the page. for accessibility purposes, i want to change that to something like "page: 2" instead of just "2".

Solution:

There isn't such a built-in feature within Views shortcode [wpv-pager-nav-links], but you can change the link text by setup the attribute "anchor_text" of the shortcode, for example:

[wpv-pager-nav-links anchor_text="Page %%PAGE%%"]

Relevant Documentation:

https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-pager-nav-links

This support ticket is created 6 years, 7 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
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9: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/Hong_Kong (GMT+08:00)

This topic contains 4 replies, has 2 voices.

Last updated by Ido Angel 6 years, 7 months ago.

Assisted by: Luo Yang.

Author
Posts
#783500

hey,
right now the link titles of pagination links are just the number of the page. for accessibility purposes, i want to change that to something like "page: 2" instead of just "2".
I tried adding "title" to the pagination shortcode, but that didn't work.
any ideas?
thanks!
ido

#783811

Dear ido,

I assume we are talking about the Views shortcode [wpv-pager-nav-links], please try to setup the attribute "anchor_text" of the shortcode, for example:
[wpv-pager-nav-links anchor_text="Page %%PAGE%%"]

More help:
https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-pager-nav-links

anchor_text (opt):
'anchor_text'
Displays this text instead of the number only

#783819

hey,

thanks - but anchor text isn't accessible, it's just what "normal" ppl see. i need the title (e.g small tooltip that pops up upon hover) to show "page: 2" instead of just "2".

can this be done?
thx

#784243

As you can see, there isn't such a built-in feature within Views shortcode [wpv-pager-nav-links]. if you agre, we can take it as a feature request, our developers will evaluate it.

#784267

Thanks Luo. That would be great. I think overall toolset should start implemeting accessibility features... 🙂