Sticky/Featured hook?

Home Forums Calendar Products Events Calendar PRO Sticky/Featured hook?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1602029
    Steven FitzRandolph
    Participant

    Hello. I’m using the sticky function to move an event to the front of a tribe_get_events() query. To my great surprise, the despite using post_class() in the loop, there doesn’t seem to be a css hook added. Is this possible? Is there some other parameter I need to add?

    It seems silly that post_class() wouldn’t add a class to an event if sticky/featured, but perhaps I’m missing something and it cane be done? I need a class on any featured/sticky items so I can style them differently.

    Thanks!

    #1603769
    Andras
    Keymaster

    Hi Stephen,

    Thanks for using our plugins and welcome to our help desk!

    The featured events get this class: ‘.tribe-event-featured’

    It gets added here:

    wp-content/plugins/the-events-calendar/src/functions/template-tags/general.php:670

    The sticky ones do not get an extra class, that is not implemented in the plugin.

    Let me know if I can help you further.

    Cheers,
    Andras

     

    #1622020
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Sticky/Featured hook?’ is closed to new replies.