WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Maria Manoela Porto
    Member
    Posted 1 year 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"]'); ?>

    http://wordpress.org/plugins/the-events-calendar/

  2. roblagatta
    Modern Tribe Support
    Plugin Author

    Posted 12 months 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
    Member
    Posted 12 months 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

About this Topic