Posted: August 8, 2014 at 2:33 pm
|
WordPress 3.9.2 // EE Version 3.1.36.5.P Business License // New install I have categorized all of my classes and set the color of the categories but the categories aren’t displaying. Colors aren’t apparent anywhere either. |
|
They will list under the category on a separate page though: Custom Post Type conflict at all? The category I set up there is diplaying: But then clicking on the Health & Wellness category returns |
Hi, Those colors are used on the calendar page. Do you have a page with the calendar shortcode running? — |
|
|
I have it in my sidebar and its own page: Here are the settings for the Health & Wellness Category used for the Pilates class on August 12th that isn’t using the color purple that I specified on the Categories page: |
|
Hi Aryon, Did you set the “Enable CSS for Categories” in the Event Espresso > Calendar settings page? Can you also double check that the event has had the category assigned to it please? |
|
All is well and colors are displaying after setting “Enable CSS for Categories”. I could still use feedback as to how to output/add this category to display on the event_list_display.php and event_post.php so that the color will match across the Calendar, [EVENT_ESPRESSO_CATEGORY] and Event Detail. I would also like the categories to display on the Events Espresso Upcoming Events Widget. |
|
(Let me know if I should open a separate ticket for this support request.) I updated my version of event_list_display.php to include:
I also attempted to output the category on single-espresso_event.php by using code from other parts of the template or other templates:
Looking for a standardized way to call the Category name as well as a passing the id to the div so the Category color I have defined gets passed as well. THANKS! |
Hi Aryon, The following will return a category name: $category_name = espresso_event_category_data($event_id, TRUE); return $category_name['category_name']; You can also get the colors via the espresso_event_category_data() function if you pull those from the category_meta array. |
|
|
Unfortunately I will need additional instruction on where to add this specific code and how to accurately reference it. Adding it just above the Paragraph didn’t work:
Knowing how to call this in the id would also be helpful: |
|
Hi, It depend on what you want to do with it. For example, you could simply add the category to the event “block” like so To get the actual colour code you would need to unserialize the data: Doing a var_dump() on the $category_name will tell you what’s available to use. |
|
Excellent. This gives me access to everything that I need. |
The support post ‘Categories and colors not displaying in my class details or overview’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.