Skip Navigation

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

Este hilo está resuelto. Aquí tiene una descripción del problema y la solución.

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 hace 6 años, 7 meses. 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.

Hoy no hay técnicos de soporte disponibles en el foro Juego de herramientas. Siéntase libre de enviar sus tiques y les daremos trámite tan pronto como estemos disponibles en línea. Gracias por su comprensión.

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)

Este tema contiene 4 respuestas, tiene 2 mensajes.

Última actualización por Ido Angel hace 6 años, 7 meses.

Asistido por: Luo Yang.

Autor
Mensajes
#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... 🙂