Home › Forums › Calendar Products › Events Calendar PRO › Remove Sidebar
- This topic has 4 replies, 2 voices, and was last updated 7 years, 9 months ago by
tactical classroom.
-
AuthorPosts
-
June 28, 2018 at 3:21 am #1563396
tactical classroom
ParticipantHi there,
I’ve just downloaded and installed Events Calendar and Tickets Plus so I can run courses and sell paid tickets to those courses.
The issue I have is that the individual “Event” page/post (and probably “All Events” page/post) don’t fit the look of my website. : (
For a start, I have a sidebar which I can’t seem to get rid of…
I’ve tried the different Events Templates from the drop down options in Event>Settings.
I have also tried different theme layout settings/options for Posts and Pages in Dashboard>Customise (both posts and pages are set to full width by default).
I am using the OceanWP theme.
This theme (with the help of the Ocean Xtra plugin also allows (usually) for some customisation of the post/page layout when creating posts and pages.
For example, I can usually choose (full width, no header, Remove top margin, add/remove footer etc.).
These options are not displayed inside “Add New Event”.
I don’t want to publish this event until this is rectified.
Any help is appreciated.
Regards
Jeremy
June 28, 2018 at 10:13 am #1563838Sky
KeymasterHi Jeremy!
Thanks for reaching out! I will try to help you get this figured out.
It seems that OceanWP has their own custom events templates that are used for our plugins, and they hard-code the sidebar area in. To prevent this, you will need to create a custom template with that removed.
To do this, copy the file from wp-content/themes/oceanwp/tribe-events/default-template.php into your child theme, in [your-child-theme]/tribe-events/default-template.php, and comment out or delete the line of code that outputs the sidebar ( do_action(‘ocean-display-sidebar’); )
Hope that helps! Please let me know if you have any further questions about this.
Thanks,
SkyJune 28, 2018 at 2:08 pm #1564054tactical classroom
ParticipantThanks for getting back to me.
Unfortunately, I’m not a developer so I don’t fully understand what you are asking me to do.
I have done a couple of things using FTP etc. though in the past.
Do you have a video detailing the process or perhaps a little more detail?June 28, 2018 at 2:33 pm #1564078tactical classroom
ParticipantAlso, do I need to be running a child theme for this to work?
There is usually no “requirement” for a child theme with OceanWP but I assume that if I don’t create one, when I update the theme the change you are suggesting will removed and need to be redone?
Thanks
Jeremy
June 29, 2018 at 8:11 am #1564513Sky
KeymasterHi again,
Using a child theme is a best practice for a variety of reasons. In order to override any of the templates from the event calendar plugins, you will need to create the “tribe-events” folder in your child theme, and place the modified template inside of it. But you are correct, if you modify the main theme, your changes will be lost the next time you update.
However, be aware that customizer settings, menus and a few other things are stored in the database under the active theme name. Switching to a child theme after the fact may necessitate recreating these settings.
To remove the sidebar from your theme’s template, copy the file from wp-content/themes/oceanwp/tribe-events/default-template.php into your child theme, to [your-child-theme]/tribe-events/default-template.php. You would then want to delete the code on line 40.
While this will prevent the sidebar from showing, the template may still have other styles that reflect a template designed around a sidebar layout. You may need to add additional CSS, or modify the template markup to get the look you are wanting.
To get the look and functionality that ships with our plugins by default, you can copy the template from the-events-calendar/src/views/default-template.php into [your-child-theme]/tribe-events/default-template.php.
Just to be clear on what’s going on here, your theme is overriding our template with it’s own, and they do not provide a way to choose the layout like you would normally be able to. Overriding their template is the only way to change this, aside from creating some custom CSS for their template markup.
Hope that helps! Please let me know if you have more questions about this.
Thanks,
SkyJuly 21, 2018 at 9:35 am #1580700Support Droid
KeymasterHey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.
Thanks so much!
The Events Calendar Support Team -
AuthorPosts
- The topic ‘Remove Sidebar’ is closed to new replies.
