Skip Navigation

[Resolved] Pagination in search archives has no list classes

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

Problem:
The issue here is that the user's pagination does not render with the theme's default styling.

Solution:

This could be that the pagination shortcodes that were generated in your view was not wrapped with the html that the theme uses to style the pagination.

What I recommend that you do is to wrap the pagination shortcodes in the appropriate HTML tags that your theme uses to style its pagination.

This support ticket is created 6 years, 3 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 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 5 replies, has 2 voices.

Last updated by Ian Henderson 6 years, 3 months ago.

Assisted by: Shane.

Author
Posts
#1130569

I am unable to style the output of a search archive view pagination because the view is creating default pagination but without the list classes ul/li. If I manually add pagination to the view, I can't hide the default pagination because it uses the same classes.

Please see here: hidden link

The 'Next' and 'Previous' links are simply text, and don't match pagination used in the rest of the site. Is this an omission? How do I get around this?

#1130724

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Ian,

Its possible that you need to replicate you're sites pagination css here. Could you send me a link to a page where your site has its default pagination ?

Thanks,
Shane

#1130731

Hi Shane - please look at that page again. The problem isn't CSS. When the search archive view includes pagination (automatically) it doesn't enclose the next/previous page links in any ul/li classes.

However, it's the same <a> class as the rest of the pagination links so if I style that link it will cause a problem on the other pages. My point is that it is inconsistent.

Compare the pagination on this page hidden link to this page hidden link

#1130776

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Ian,

Would you mind providing me with access to the site so that I can have a look at the differences on these 2 pages that you sent?

The private fields have been enabled for your next response.

Thanks,
Shane

#1132957

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Ian,

I checked this for you and it should work now.

What I did was to remove the pagination and re-add it an it added the list tags around it.

Please let me know if this helps.

Thanks,
Shane

#1133341

My issue is resolved now. Thank you!