Events list with no menu or sidebar?

Home Forums Calendar Products Events Calendar PRO Events list with no menu or sidebar?

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #253420
    User Services
    Participant

    Is it possible to create a page that will display the list view of the calendar with only the events themselves on the page, no sidebar or menu?

    I’m planning on making a template page that is content-only, but if you’ve got any tips on that I’d love to hear those as well. The goal is to create a page with only the events so that I could then import via iframe into another site.

    #255142
    User Services
    Participant

    This reply is private.

    #256119
    Barry
    Member

    Hi!

    A lot depends on your theme.

    Our default events template for instance doesn’t explicitly pull in menus or sidebars – but it does try to load the theme’s header and footer so of course if these do load those elements that’s clearly a problem.

    That being the case, it may be you need a template without a get_header() or get_footer() call and you simply reimplement those pieces – sans the stuff you don’t want – within one template.

    Alternatively, you could set a variable in a custom version of the default events template before those calls, then add logic in the existing header/footer templates so as to stop certain elements from being loaded or created.

    Does that help at all?

    #262012
    User Services
    Participant

    Barry,
    That may be helpful, I believe I’ve already gotten so far as to have a template that does not pull in the header or footer nor the events calendar menu. See the ‘content’ link mentioned in my previous post. The problem I see with it though is when the page is loaded instead of pulling in events it’s showing information about the page itself along with the current time and date. I believe I’m missing something with the copy of the list/content.php view, it’s like it doesn’t know which events to look for.

    #262923
    Barry
    Member

    Hmm, so just to be clear, are you overriding tribe-events/default-template.php with the code from your content template – or are you setting the content page template you created as default in Events > Settings > Display?

    #265195
    User Services
    Participant

    I created a new template page and used the contents of the events list.php file. There was a problem with the loop, I think it didn’t have one. But, I found some advice and copied their code and modified and it’s now doing what I had in mind. Thanks, Barry!

    #269767
    Barry
    Member

    Great!

    I’ll go ahead and close the thread in that case but of course if we can help with anything else please don’t hesitate to create new threads as needed 🙂

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Events list with no menu or sidebar?’ is closed to new replies.