Home › Forums › Calendar Products › Events Calendar PRO › Events list with no menu or sidebar?
- This topic has 6 replies, 2 voices, and was last updated 11 years, 9 months ago by
Barry.
-
AuthorPosts
-
June 26, 2014 at 1:15 pm #253420
User Services
ParticipantIs 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.
June 27, 2014 at 7:26 am #255142User Services
ParticipantThis reply is private.
June 27, 2014 at 4:22 pm #256119Barry
MemberHi!
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?
June 30, 2014 at 6:07 am #262012User Services
ParticipantBarry,
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.June 30, 2014 at 5:04 pm #262923Barry
MemberHmm, 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?
July 1, 2014 at 12:47 pm #265195User Services
ParticipantI 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!
July 3, 2014 at 1:16 am #269767Barry
MemberGreat!
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 🙂
-
AuthorPosts
- The topic ‘Events list with no menu or sidebar?’ is closed to new replies.
