Skip Navigation

[Resolved] Need to output a toolset category slug as a class name using php

The Toolset Community Forum is closed, for technical support questions, please head on to our Toolset Professional Support (for paid clients), with any pre-sale or admin question please contact us here.
This support ticket is created 6 years, 9 months ago. There's a good chance that you are reading advice that it now obsolete.
This is the community support forum for Types plugin, which is part of Toolset. Toolset is a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients and people who registered for Types community support can post in it.

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 2 replies, has 2 voices.

Last updated by CommMgr 6 years, 9 months ago.

Assisted by: Shane.

Author
Posts
#541934

We are to launch our conference registration tomorrow, June 28, so this fix is URGENT.

I am using the Divi theme with Toolset Types and Views plugins only. I am not using the Layout plugin.

On our web site we have an established blog based on our newsletter. This blog has a custom header banner that is different than the rest of the web site...a header with our newsletter logo.

When I created my Sessions views, because they are technically posts, the Sessions pages had the same header banner as our newsletter blog.

I need to have a different header banner on my Toolset Sessions posts. I have been working with my Divi theme support and they can help me do this except I also need your help. Divi support said this:

Talk to plugin author about how to output a tool set category slug as a class name using:

<?php post_class(); ?>

Thank you for your assistance.
CommMgr

#542112

Shane
Supporter

Languages: English (English )

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

Hi Chris,

Thank you for contacting our support forum.

Actually where is this going is it for a view? And is it that you just want to use the slug of the category to be the classname ?

Please let me know.
Thanks,
Shane

#542464

Hi, Shane...

Happily, the Divi support team was able to get me the correct code needed for different banner images on each post type. So I'm marking this thread resolved.

CommMgr

The forum ‘Types Community Support’ is closed to new topics and replies.

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.