Home › Forums › Calendar Products › Events Calendar PRO › Default Sidebar not Showing on Calendar Pages
- This topic has 3 replies, 2 voices, and was last updated 13 years, 7 months ago by
Jonah.
-
AuthorPosts
-
September 26, 2012 at 8:53 am #25749
Sarah
MemberHow 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.
September 26, 2012 at 10:39 am #25758Jonah
ParticipantHi 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
September 27, 2012 at 5:56 am #25785Sarah
MemberI 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,
SarahSeptember 27, 2012 at 2:08 pm #25821Jonah
ParticipantHi 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
-
AuthorPosts
- The topic ‘Default Sidebar not Showing on Calendar Pages’ is closed to new replies.
