Skip Navigation

[Resolved] Formatting CPT taxonomies

This support ticket is created 4 years 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 10 replies, has 2 voices.

Last updated by Shane 3 years, 11 months ago.

Assisted by: Shane.

Author
Posts
#2149775

Hi there

For our CPT we have also created a list of corresponding taxonomies. These are the "topics" for our sessions and videos.

Now, I'd like to have these taxonomies show up not just as normal text (which I can easily do of course) but I'd like to format them to look like buttons. Later I would then make those buttons clickable and our members can easily see all sessions and videos on the taxonomy archive page, but for now they shouldn't be clickable but just look like buttons. Is there standard CSS code I can use? We are using Uncode Undsgn theme with a customized WP Bakery page builder, in case that's relevant.

Pls advise - thanks!
Hans

#2150067

Shane
Supporter

Languages: English (English )

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

Hi Hans,

Thank you for getting in touch.

When you say standard css code in "but for now they shouldn't be clickable but just look like buttons. Is there standard CSS code I can use?"

Are you referring to designing the buttons ?

If so then no we do not have any standard css that can be used to do this.

Thanks,
Shane

#2150303

Thanks Shane. Let me re-phrase. I want to style how these taxonomies show up in the frond end. Now, it's just plain text. Can I change colour, add highlight colour or even make them buttons?

#2150671

Shane
Supporter

Languages: English (English )

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

Hi Hans,

Yes you actually can, send me a link to the page where you are displaying the taxonomies and I should be able to provide you with some example css.

Thanks,
Shane

#2153019

Thanks Shane

Here's the link hidden link
Business Design, Business Models, Commercialization and Scaling Up, Incubation, Leadership are the taxonomies, now just listed as plain text. Curious to hear what we can do.

#2153101

Shane
Supporter

Languages: English (English )

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

Hi Hans,

Thank you for the link.

Based on what I see we will need to add some custom class to the taxonomy output in order to be able to style it.

Would you mind allowing me to have admin access so that I can assist better ?

Thanks,
Shane

#2153753

Shane
Supporter

Languages: English (English )

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

Hi Hans,

Have a look at the page now.
hidden link

It should look like a button. What I had to do was to use a classic view to display the taxonomy terms instead of using the [wpv-post-taxonomy] shortcode as it doesn't allow me to add classes to the taxonomy being listed.

Also here is the link below for the view.
hidden link

Please let me know if this helps.
Thanks,
Shane

#2154925

Thanks a lot Shane- now I finally understand how views work with this page builder... Quite a hassle but you made it possible.

I think we'll want to change the layout a bit (will get back with specifics) but wondering- could these buttons be clickable, opening the taxonomy archive page in a new tab for example?

#2155457

Shane
Supporter

Languages: English (English )

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

Hi Hans,

You can reformat the link to include the taxonomy archive's url like below.

<a href="[wpv-taxonomy-url]" class='span-button'>[wpv-taxonomy-title]</a>

This should now make your taxonomy links clickable.

Thanks,
Shane

#2158813

wow, great thanks. How can we style the buttons?

Edit - now I actually can't see the interests showing up anymore?

#2158839

Shane
Supporter

Languages: English (English )

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

Hi Hans,

If you check the css section of the "Loop item in List Interests" section of your view, you can customize the styling from there. You will notice that i've already added some basic styling to the section.

Secondly I checked on your post and the only post that has interests is this one below.
hidden link

None of your other posts have any interests selected so nothing will be displayed for those.
Thanks,
Shane