Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #481299

    Hi,
    I relate to a question from “levitivus” from october 2014. He asked if it’s possible to add the name of the event-category as css-class for each list item in the Upcoming Events module.
    I’m also interested in this point and tried already a lot with my little php-knowledge. The following code generates roughly what I want. The ID of the event-list item is shown as css-class and all event-categories are also shown as class-items for each list-item.

    $terms = get_terms("tribe_events_cat");
    $count = count($terms);
    if ( $count > 0 ){
    
     foreach ( $terms as $term ) {
    					
    $event_class .= ' '.'category-'.$term->slug.' ';
    }
    }
    					
    $output .= "<a href='{$link}' class='{$class} {$event_class}'>";

    I’m trying hard to find a solution that generates only the appropriate event-category-name as css-class for each list-item in the Upcoming events module, but I didn’t find it by myself.

    I’d be very grateful, if someone can help me out with this.
    Thx in advance!

    • This topic was modified 9 years, 4 months ago by Jens.
    #482944

    Hey ehnatnor!

    Plugin customization is outside the scope of our support. I would try contacting the events calendar authors or post in their support forums about this, https://theeventscalendar.com/support/forums/.

    They will be able to help you out better.

    Best regards,
    Elliott

    • This reply was modified 9 years, 4 months ago by Elliott.
    #482949

    Hi Elliott,

    thanks for your answer!
    My problem isn’t the plugin by itself, the “problem” is the code inside the Enfold-theme module. When I use the regular widget of the event calendar, the categories of each upcoming event are shown as css-class. Just in the upcoming events calendar module of the Enfold-theme there’s nothing like that. So I don’t think, that the plugin authors could/would help me out with that.

    In opinion it’s a similar “problem” to this: https://kriesi.at/support/topic/adding-a-category-as-css-class-to-blog-posts-content-element-avia-layout-bldr. But I’m just not able by myself to find the last trick.

    It would be great if someone knows a solution.

    ehnatnor

    #482956

    Hey!

    Everything is possible, but that would need a lot of work to be done.

    You can contact one of our Customization Contractors, who will help you out with the process.
    http://kriesi.at/contact/customization

    Let us know if we could do anything else, regarding our theme

    Cheers!
    Basilis

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.