Check if do_action( 'tribe_events_single_event_after_the_meta' )

Home Forums Calendar Products Events Calendar PRO Check if do_action( 'tribe_events_single_event_after_the_meta' )

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1347806
    Josh Kern
    Participant

    I’d like to add a container around each do_action() in single_event.php. Is there a way to check whether there’s output? I don’t want the div container to display if there’s no output.

    #1348600
    Andras
    Keymaster

    Hey Josh,

    Thanks for your question!

    I’m not quite sure if that can easily be done.

    How about always wraping it with a div, and if you want to style it differently when it has nothing in it, they can use the :empty CSS selector.

    https://css-tricks.com/almanac/selectors/e/empty/

    Would that work for you?

    Andras

    #1359676
    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 ‘Check if do_action( 'tribe_events_single_event_after_the_meta' )’ is closed to new replies.