Show code only on single events page

Home Forums Calendar Products Events Calendar PRO Show code only on single events page

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1383123
    Johannes Maier
    Participant

    Good day,

    I’d like to integrate a sidebar in my custom page template, that only shows on single event pages.
    As I know from WordPress, I can use is_front_page() to only show my code on the home page.
    I was wondering what code The Event Calendar provides to do the same, but for single event pages.

    <?php if (!is_front_page()) : ?>
    sidebar code
    <?php endif; ?>

    Thanks

    #1384295
    Jennifer
    Keymaster

    Hi Johannes,

    Thanks for reaching out! You can find a list of our functions here, and our themer’s guide also has some great info on customizations with our plugins (including customizing events templates). Our tribe_is_event function checks whether or not the post type is “tribe_events”, and you can also use the WordPress is_single function to make sure you’re on a single page.

    I hope that helps get you started, but please let me know if you have any other questions!

    Thanks,

    Jennifer

    #1401303
    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 ‘Show code only on single events page’ is closed to new replies.