Default Sidebar not Showing on Calendar Pages

Home Forums Calendar Products Events Calendar PRO Default Sidebar not Showing on Calendar Pages

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #25749
    Sarah
    Member

    How can I get a specific sidebar to show up on my calendar page? I run ads on my site and the calendar is the most popular place to run them. I have the calendar template set to default template and when viewing the page, you can see the allotted space where the sidebar should be, only it is empty.

    #25758
    Jonah
    Participant

    Hi Sarah,

    Using the Default Events Template you’ll want to find /wp-content/plugins/the-events-calendar/views/ecp-page-template.php and place a copy in an ‘events’ folder in your active theme. Then, modify the code so it includes a call to the sidebar template like so: http://snippi.com/s/q56i5i8

    Does that work?

    – Jonah

    #25785
    Sarah
    Member

    I used the Default Events Template and modified the code. The sidebar now shows the event details (date, time, venue…) in the sidebar. My goal was to have a custom sidebar with banner ads showing on the calendar sidebar. So technically, there is a sidebar, just not the one that I want. I like the look of the Default Page Template, the calendar (in list format) is contained in a box outlined in grey on 2/3 of the page aligned to the left. There is a 1/3 space aligned to the right where a sidebar should be able to go. So, how can I get a custom sidebar with ads to show in the calendar sidebar? Also, as a side note, the Default Events Template shows up very strangely on my site. The page numbers for pagination purposes are sort of all over the page.

    Thanks,
    Sarah

    #25821
    Jonah
    Participant

    Hi Sarah,

    If you want to use the Default Page Template, this simply uses your theme’s page.php template file which you have complete control over. You’ll need to modify that file and figure out a way to include specific sidebars on event pages. One thing that will help you are conditional wrappers for our plugin: https://gist.github.com/2415009 – these will let you detect and execute specific code when on certain event related pages.

    You can then register different sidebars in WordPress and then call them using the dyanmic_sidebar() function in WordPress. http://codex.wordpress.org/Function_Reference/dynamic_sidebar

    I this is kind of complex but unfortunately it’s something you will need to work out on your own. Good luck!

    – Jonah

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Default Sidebar not Showing on Calendar Pages’ is closed to new replies.