Home › Forums › Calendar Products › Community Events › Remove Sidebar on Community Events
- This topic has 14 replies, 8 voices, and was last updated 11 years, 6 months ago by Leah.
-
AuthorPosts
-
July 5, 2012 at 5:04 pm #21598TonyParticipant
I can’t find the template that includes the sidebar in the community events.
I need to remove the sidebar because Dynamic Widgets plugin doesn’t play well with your plugin. As a result it includes every sidebar causing the page to crash.
I’ve tried using the default events page template, created a new page template and assigned it to the events page and still nothing will remove the sidebar from the community page.
What fix or workaround can I get to remove the sidebar on the community events of adding or listing events? I’ve tried searching through the community events views, but I can’t find the template part that includes the sidebar.
July 6, 2012 at 12:31 am #21619Joyce GraceMemberHello Tony,
Can you please link to your site when posting requests for help like this?
Also, have you had a look at our Themer’s guide for a solution to this yet? https://theeventscalendar.com/themers-guide-to-the-events-calendar/
You may need to create a new template, since the templates included by default may not work well with your theme (by the sounds of it). However this is really a customization issue, so there’s only so far we can go to help out.
We also have technical documentation here: https://theeventscalendar.com/support/documentation
You could also try replacing the Dynamic Widgets plugin with something else to achieve what you want it to do.
July 7, 2012 at 8:14 pm #21685Joyce GraceMemberHello Tony,
I see you tried to leave a message here that is not appearing:
—
Hey Joyce. I’ve already been on the documentation site and have created my templates by copying the files from the plugin to my own custom theme. The problem I’m running into is that I’ve been able to remove the sidebar from the Events calendar and single event views, but I cannot find where I can remove the code snippet on the community events. The problem is that we use Dynamic Widgets plugin for all the other pages. It recognizes your custom post types but it will not include/exclude widgets on the page. So knowing that we decided that for this section alone we will just remove the sidebar all together. So I’m all asking is… “in what template for the Events Community can I use remove the sidebar. I haven’t found it yet and I’m still digging around for the file.” The link to our site is http://www.evolvhealth.com/events
—On that note, I am going to try to see if I can get someone to help you who might know better than I do.
Sorry for the delay!
July 8, 2012 at 8:43 am #21705JonahParticipantHi Tony,
The Community Events plugin uses your theme’s page.php template so you’ll want to edit that and use the following conditional code to detect when you are on one of the community pages and show/hide whatever sidebar you want that way:
if(tribe_is_community_my_events_page()) {
echo 'this is the my events page!';
}if(tribe_is_community_edit_event_page()) {
echo 'this is the submit/edit events page!';
}
I hope that helps!
– Jonah
July 9, 2012 at 8:45 am #21735TonyParticipantTo keep me from running into errors, how would I do this if the plugin was deactivated, what it sounds as though is I should create a custom page template specifically for the events calendar and then place this logic in it then assign that page template to the events plugin in the settings.
Am I correct in my thinking on this?
July 9, 2012 at 1:32 pm #21807RobMemberHey Tony: even if the plugin is deactivated, you should still be able to add this code (then have it take effect when you activate the plugin). Alternatively you could always do it on a testing / staging site so there was no chance of a negative impact in your live environment.
Have I misunderstood the question here? Let em know if so, and I’ll get you what you need to succeed.
July 9, 2012 at 7:18 pm #21844MichaelParticipantRob, is there any documentation where all these functions are?
Tony- I will be using the following code to first check if the function exists before checking executing the function:
if( function_exists(‘tribe_is_community_edit_event_page’) && tribe_is_community_edit_event_page() )
Do the same for any other functions.
July 9, 2012 at 7:49 pm #21847MichaelParticipantThis is the code that I actually used in my if statement that activates code I want displayed only if it is not a community event page:
!(function_exists(‘tribe_is_community_edit_event_page’) && (tribe_is_community_edit_event_page() || tribe_is_community_my_events_page() ) )
July 9, 2012 at 8:42 pm #21849MichaelParticipantAnd make sure to use single quotes and not the magic quotes that were inserted by the forum software.
July 10, 2012 at 7:44 pm #21916TonyParticipant@jonah, instead of using page.php could we not just assign a new page template in the events settings and have that be used for community page or is does it exclusively use page.php. Could I use something like, page-events.php?
July 11, 2012 at 11:26 am #21964Karin EttensonParticipantI am with Tony on this, I would really like to specify which template page the submit an event form is on.
This would be a simple feature to add I think, a dropdown of published pages on the settings page to select which page to use for the submission form, the user submitted events and so on, page.php being default if not specified.
For my clients I setup an private login area with custom styles, they can edit their own pages and listings, but for me to custom the event submissions to use the same styles I can either write a bunch of if statements or edit the events plugin which would be messy.
‘template’ => array(
‘page.php’,
dirname( __FILE__ ) . ‘/page.php’
)July 12, 2012 at 2:19 pm #22032JonahParticipantHi guys,
Unfortunately there is no option for using a different page template at this time although we will likely add an option for it in the future. For now you’ve got to work with page.php. Let me know if you guys have any other questions on this.
Cheers,
JonahSeptember 23, 2012 at 11:46 am #25590Dante FillyauParticipantJonah:
I am facing the same issue, but on my template it is like this:
How do I comment it out for the community events page. I need this sidebar removed from this page. Please assist.
September 23, 2012 at 11:50 am #25591Dante FillyauParticipantNevermind I figured it out.
October 5, 2012 at 12:09 pm #26181LeahMemberGlad to hear it Dante 🙂
-
AuthorPosts
- The topic ‘Remove Sidebar on Community Events’ is closed to new replies.