The Events Calendar
[resolved] Page slug (3 posts)

  1. Maria Manoela Porto
    Posted 2 years ago #

    Hi! I have different headers for each category/page of my website and I am trying to configure a different one for Events but I can't! I use slugs to identify pages/categoris - I've tried using "events" but nothing happens.
    Can you help me telling me what to condition since "events" is not an actual page neither category? Thanks!

    <?php elseif (is_page('events')): ?>
    <?= do_shortcode('[slider id="1418"]'); ?>


  2. Rob La Gatta
    Modern Tribe Support
    Plugin Author

    Posted 2 years ago #

    Hey again Maria. Can you elaborate on what your end goal is here? You just want a different header image, or something broader? If you can elaborate a bit I can try to point you in the right direction. Thanks!

  3. Maria Manoela Porto
    Posted 2 years ago #

    Sure! But I've figured already. I have different headers for different topics of my intranet and wanted to have a different one for the events. I use page's id, category's posts or slugs to check which header should be loaded and was having trouble to find what to condition for the events. I did research and <?php if (tribe_is_event_query()): ?> worked fine. Thanks a lot for answering!
    Kind regards, Maria

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • The Events Calendar
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic