How do I use the Calendar as a static home page?

Home Forums Calendar Products Events Calendar PRO How do I use the Calendar as a static home page?

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #48378
    Cynthia Lockley
    Participant

    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.

    #48408
    Jonah
    Participant

    Hi 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

    #48670
    Cynthia Lockley
    Participant

    Jonah,
    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.

    #48706
    Jonah
    Participant

    Hi 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

    #48942
    Cynthia Lockley
    Participant

    Thank you. It works now. http://events.stcwdc.org

    #49120
    Jonah
    Participant

    Glad to hear Cynthia, please let us know if you need help with anything else.

    Thanks,
    Jonah

    #979126
    Support Droid
    Keymaster

    This 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.

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘How do I use the Calendar as a static home page?’ is closed to new replies.