different page template for single-organiser view

Home Forums Calendar Products Events Calendar PRO different page template for single-organiser view

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #902310
    miconexrsgs
    Participant

    I am trying to use a different page template for events and organiser. I set my events template setting to pull my page template through but would like to differ this for the individual organiser view. I copied the singular-organiser.php file and placed it under tribe-events/pro but its still pulling through the page template for events. Could you give me some advice to what i am missing or doing wrong please? Thanks in advance for any help you can give me.

    #903323
    Brook
    Participant

    Howdy miconexrsgs,

    That’s a cool modification. You are certainly on the right track. There is one thing to keep in mind though, the WP theme/template is the outer region that surrounds the content. The Organizer override that you made is for the content itself, it can not override the outter template.

    Usually when people want to do something custom on a specific page, they just use one page template. However, they add their special stuff inside of PHP conditionals like:

    if(tribe_is_event_organizer()) { //do magic }

    If you do not like that method you could attempt to override the template itself for the organizer page. You would need to tap into the WP filter template include, with a priority of 11 or more.

    Does that all make sense? Does it fully answer your questions?

    – Brook

    #939656
    Brook
    Participant

    Since we have not heard back in a while I am going to archive this topic. If you need anything else though please feel free to open a new topic. We will be glad to help. Cheers!

    – Brook

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘different page template for single-organiser view’ is closed to new replies.