WordPress.org

Ready to get started?Download WordPress

Forums

All-in-One Event Calendar
[resolved] Set default parent page for single events? (7 posts)

  1. snakewhisperer
    Member
    Posted 2 years ago #

    Hey, love this plugin, just need this one issue resolved and, well, i'm a snake catcher, not a web designer.

    Is there a way to set the default single page parent to another page? I have the calendar on its own page and I'd like the "single event" page to inheret the layout from the calendar page. At the moment it defaults to a "single blog post" page with the parent being my blog page. Unfortunately its layout has to remain what it is so I would like the calendar to look elsewhere for its layout.

    Hope this makes sense and I hope someone can help.

    P.S. I am fine with editing my php files etc, just have no idea where to look for that specific bit of code.

    Cheers and thanks!

    http://wordpress.org/extend/plugins/all-in-one-event-calendar/

  2. josjo
    Member
    Posted 2 years ago #

    Go to your template directory and make a copy of single.php (if it's a subtheme and single.php is missing you have to copy the file from the parent theme). Rename the new file to single-ai1ec_event.php. Look at the file page.php (default template file for the calendar) and copy relevant styling from there to single-ai1ec_event.php.

  3. snakewhisperer
    Member
    Posted 2 years ago #

    You are a superstar josjo, worked perfectly! Thanks mate!

  4. asisrodriguez
    Member
    Posted 2 years ago #

    thanks for this explanation but i'm lost. please, can you help me?
    in wich directory i have to put this new file (single-ai1ec_event.php)?
    the page.php you mean in the theme, true?
    many thanks
    Asis

  5. josjo
    Member
    Posted 2 years ago #

    Yes, it goes in the theme directory where you also find single.php (page.php is for static pages, not posts).

  6. asisrodriguez
    Member
    Posted 2 years ago #

    thanks very much¡

  7. arch9241
    Member
    Posted 2 years ago #

    Brilliant - works a treat. Will this be overwritten on updating the plugin?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic