Home › Forums › Calendar Products › Events Calendar PRO › How do I use the Calendar as a static home page?
- This topic has 6 replies, 3 voices, and was last updated 8 years, 10 months ago by Support Droid.
-
AuthorPosts
-
May 13, 2013 at 11:19 am #48378Cynthia LockleyParticipant
I have tried the following to get the calendar to show as the home page:
1. Duplicated the page.php file and named it events.php
2. Used the following code at the top of the events.php file
http://pastebin.com/raw.php?i=cuBu3UXg
3. Added a new WordPress page named Events http://events.stcwdc.org/events/
4. Set the Events Calendar Settings/Template to Events Template
5. Default view for the events is Calendar
6. Set the Theme Static Home Page to Events.
But I when I go to the home page http://events.stcwdc.org/ it is just the Events Comments page
What am I missing?
I am using the Twenty Eleven theme.May 13, 2013 at 4:56 pm #48408JonahParticipantHi Cynthia,
The easiest way to do this is with a PHP include that you can include in your theme’s page.php template like so:
if(is_page('home') || is_front_page()) {
include('wp-content/plugins/the-events-calendar/views/gridview.php');
}
I hope that helps but let me know if you have any questions.– Jonah
May 15, 2013 at 3:58 pm #48670Cynthia LockleyParticipantJonah,
OK. I back-tracked to the original settings for the blog:
I changed the Events Settings/Template back to Default Page Template.
I set the Theme Home page back to Your Latest Posts.
I tried putting your php code in several places in page.php but it doesn’t work. Is there a specific location in the page.php file it needs to be or is there another setting that I’ve missed?Thanks.
May 16, 2013 at 5:34 am #48706JonahParticipantHi Cynthia,
If you have the theme home page set to Your Latest Posts you’ll need to add the code above to either your theme’s index.php file or home.php – try that.
– Jonah
May 17, 2013 at 6:28 pm #48942Cynthia LockleyParticipantThank you. It works now. http://events.stcwdc.org
May 20, 2013 at 9:15 pm #49120JonahParticipantGlad to hear Cynthia, please let us know if you need help with anything else.
Thanks,
JonahJuly 7, 2015 at 6:26 am #979126Support DroidKeymasterThis topic has not been active for quite some time and will now be closed.
If you still need assistance please simply open a new topic (linking to this one if necessary)
and one of the team will be only too happy to help. -
AuthorPosts
- The topic ‘How do I use the Calendar as a static home page?’ is closed to new replies.