Skip Navigation

[Resolved] Customize Toolset HTML and CSS

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

Problem:
How can I customize Toolset CSS and HTML outputs, for example, the pagination styles added when you insert a Pagination in a View - how can we modify them?

Solution:
https://toolset.com/forums/topic/using-themes-css-style-for-pagination/#post-610330

This support ticket is created 6 years, 11 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
- - 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00
- - - - - - -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

This topic contains 1 reply, has 2 voices.

Last updated by Beda 6 years, 11 months ago.

Assisted by: Beda.

Author
Posts
#610187

I am trying to: use my theme's CSS style for pagination

Link to a page where the issue can be seen: hidden link

I expected to see:

Instead, I got:
I have searched the support forums for about an hour now because I thought I saw this somewhere before, but I cannot find it. I would like to use the CSS style my theme uses for pagination, or at the very list, have a way to make the box around the page numbers on the link above smaller and match the red on my website rather than being blue.

#610330
CSS class used.png

Toolset outputs Bootstrap HTML and uses Bootstrap CSS natively.
When you insert the pagination you can choose wether to use the legacy output (raw HTML) or Bootstrap Output.

To address CSS to your HTML (wether if it's pure HTML or Bootstrap HTML), you can:
- add CSS rules to classes or ID's of your existing HTML
- add class identifiers to your HTML, which are used already in the Theme.

The first is the easiest approach, as sometimes it's tricky to add CSS classes to ShortCodes unless they support the argument.

For your goal I suggest to apply Custom CSS to the class of the pagination links/buttons, directly in the View, or by adding it to your Custom CSS theme's style sheet.

You can either overwrite the Bootstrap CSS or output the pagination with Raw style and then address those classes.

I added a Screenshot for reference what class to overwrite right now, since you use Bootstrap.

I have also changed the status of this ticket from "Bug" to "How to", as this is not a Bug in Toolset.
We can also help only limitedly with CSS and HTML, as those are required skillsets to use Toolset.

But I can assist how to approach this generally, as above outlined.