Home › Forums › Calendar Products › Events Calendar PRO › Adding sidebar to single-event.php
- This topic has 5 replies, 2 voices, and was last updated 11 years, 10 months ago by
Barry.
-
AuthorPosts
-
June 2, 2014 at 3:18 am #198083
johnnytequila
ParticipantCan anyone give me some very basic instructions as to how to add a sidebar to the single-event.php file? My knowledge of PHP is very limited (so some sample code would be great!) and I want to give it a go myself without incurring extra costs. I did try changing the Events Template to the theme Default Page Template first of all but that just displayed a white page and I want to keep the main calendar page full width anyway. I have a child theme set up so potential damage to the site it limited! Any help much appreciated.
June 2, 2014 at 3:06 pm #199439Barry
MemberHi!
The best place to start is with our Themer’s Guide, which covers making safe modifications to plugin templates.
Depending on how your theme is structured it may be possible to add a call to get_sidebar() and pull in the sidebar that way – if not, you may need to use dynamic_sidebar() (both of which are documented in more detail in the WordPress Codex).
Does that help?
June 7, 2014 at 3:54 am #211062johnnytequila
ParticipantHi Barry, thanks for your help! I’ve checked out both the Themer’s Guide and the WordPress Codex, plus some other online tutorials regarding adding a sidebar but I still can’t get my head around it. The sidebar keeps ending up somewhere on the page and not down the side. My PHP knowledge is very limited (designer as opposed to coder) and although this plugin is exactly what I want I am struggling with customising it. The theme I’m using is MayaShop by YITH, would it help to ask them?
June 9, 2014 at 1:17 pm #215377Barry
MemberThere’s no harm in asking them.
Certainly if you’ve got the sidebar showing that’s half the battle – what remains is less PHP know-how and more HTML/CSS based as you’d need to ensure it is positioned at the appropriate point in the page structure and also set up whatever style rules might be needed (or ensure the correct classes and IDs are in place to inherit the theme’s own styling).
June 9, 2014 at 11:46 pm #216213johnnytequila
ParticipantThanks Barry, got it sorted now. Took a bit of experimental CSS copying and pasting from an existing sidebar page but got it looking right. No idea if it’s exactly right, and not looking forward to cross browser testing with IE, but it looks OK. Thanks again, great support here!
June 10, 2014 at 2:13 pm #217337Barry
MemberAwesome, glad you got there and happy we could help 🙂
I’ll go ahead and close this thread – if we can help with anything else though please don’t hesitate to create new threads as needed and, if you have a moment to spare, we’d love to hear about your experiences with The Events Calendar so far.
Thanks again!
-
AuthorPosts
- The topic ‘Adding sidebar to single-event.php’ is closed to new replies.
