Support » Plugins and Hacks » [Resolved] Page slug

[Resolved] Page slug

  • 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″]’); ?>


Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Rob La Gatta


    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!

    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

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] Page slug’ is closed to new replies.