Genesis Hooks

Home Forums Calendar Products Events Calendar PRO Genesis Hooks

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1201081
    Kary
    Participant

    I’m trying to add an image to the top of a few pages using the genesis_before_loop hook. In order to do this, I need to use an “if(is_page” conditional function. I can see how to do this on the blog page and on individual pages that I created.

    For example, this would place the image on page ID 7 if(is_page(7)), and this would place it on the blog index page
    if(is_home()).

    But I didn’t create the “Events” page for the calendar, so am uncertain how to call it in a function.

    Do you have any ideas?

    #1201469
    Nico
    Member

    Hi there Kary,

    Thanks for getting in touch with us! I can help you here 🙂

    You can use tribe_is_event_query() for all event related pages. You also have specific conditionals for the different views like tribe_is_month(). Make sure to check if the function exists before calling it, if not deactivating our plugins will lead to errors on this part of your code.

    Please try this out and let me know if you still need help,
    Best,
    Nico

    #1210750
    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 ‘Genesis Hooks’ is closed to new replies.