Home › Forums › Calendar Products › Events Calendar PRO › Mini calendar week view
- This topic has 5 replies, 2 voices, and was last updated 10 years, 9 months ago by
Barry.
-
AuthorPosts
-
July 24, 2015 at 8:20 am #989928
Irene
ParticipantHi,
I’m building a website for a congress that will be held next year. Om my home page I have an accordion menu and under the title agenda I want to show the congress agenda.
Since it is not possible to embed the main calendar in a page, I would like to embed the mini calendar widget. Is it possible to show it in week view instead of month and to set it to show only a range of dates?
Regards
IreneJuly 24, 2015 at 9:51 am #990005Barry
MemberHi Irene,
Fantastic idea!
The calendar widget is very customizable so you could certainly tweak it and re-form its output to meet your needs here – but, realistically, I’m not sure I’d recommend that over actually building out a fresh widget/shortcode given your requirements.
Definitely take a look through our Themer’s Guide for a better sense of how customizations work within The Events Calendar/Events Calendar PRO, however this is very much custom development territory so we probably will be unable to assist too much (though feel free to ask questions and if we can help – or point you in the right direction – we’ll happily do so) 🙂
Thanks!
July 25, 2015 at 3:09 am #990213Irene
ParticipantThank you for answering.
I’m not sure I will be able to build a brand new widget, I also read the Theme’s Guide but I’ cant find a way to change the month into week.
But I searched a little bit more the internet and I think that I’m almost there, I found a way to kind of embed the main calendar. and I can actually see it the way I want.
Just put this code into the page where you want to embed the calendar. It must be done in the Text editor.
<object data="http://www.spn8.nl/?post_type=tribe_events" width="1280" height="1280"> <embed src="http://www.spn8.nl/?post_type=tribe_events" width="1280" height="1280" /></object>For more information read this:
http://www.mulinblog.com/how-to-embed-web-page-in-a-wordpress-blog-post/The only problem now is that I don’t want to see a header or footer. I tried to assign a custom made page template to the calendar but nothing changes (the template works well with other pages).
Is there a way to show the calendar only?
Thanks!
-
This reply was modified 10 years, 9 months ago by
Irene.
July 27, 2015 at 7:17 am #990497Barry
MemberWell, one way could be to add a further query to the URL, ie:
www.example.com/?post_type=tribe_events&embedded_mode=1
Within your theme and any custom template overrides, you could test for the presence of that extra parameter (“embedded_mode”) and selectively show/hide various elements.
July 28, 2015 at 7:25 am #991021Irene
ParticipantHi,
I solved the problem, since I have only a homepage and the event page I set the ccs of theme to show the header and footer only on the homepage. This works for me.
/*hides the header, bottom and footer in all pages except the home-page*/
.home #top-wrapper{display: block;}
#top-wrapper{display: none;}.home #footer{display: block;}
#footer{display: none;}.home #bottom{display: block;}
#bottom{display: none;}May be not the most sexy code… but it works. Anyway, you are very welcome if you have better suggestion. I am always happy to learn.
Thank you for helping
July 28, 2015 at 8:30 am #991056Barry
MemberIf it works, that’s the main thing – it’s certainly a faster way to achieve your objectives than some of the other possibilities 🙂
Since it sounds like you’re all set I will go ahead and close out this topic – but please don’t hesitate to create new topics as needed if we can help with anything else.
Thanks again!
-
This reply was modified 10 years, 9 months ago by
-
AuthorPosts
- The topic ‘Mini calendar week view’ is closed to new replies.
