Home › Forums › Calendar Products › Events Calendar PRO › How do I set the single event URL to use the Default (WP Theme) Page Template…
- This topic has 3 replies, 2 voices, and was last updated 11 years, 7 months ago by
Brian.
-
AuthorPosts
-
September 5, 2014 at 8:43 am #724710
DDOT Webmaster
ParticipantHow do I set the Single Event URL to use the “Default (WP Theme) Page Template” and at the same time set the Multiple Events URL to use the “Default (Modern Tribe) Events Template”?
This is the URL for the calendar:
http://ddotsites.com/ddotuniversity/events/See previous forum post for historical context, circumstances or facts surrounding my particular question:
https://tri.be/support/forums/topic/default-month-view-will-not-display-with-the-default-page-template/September 5, 2014 at 9:15 am #724779DDOT Webmaster
ParticipantI am using the following child theme from StudioPress:
http://my.studiopress.com/setup/more-themes/previous-versions/education-theme/When editing a WordPress Page from the StudioPress Child Theme, the choices for Templates as a Page Attributes are only three: 1) Default Template, 2) Archive, and 3) Blog.
Currently, the default page layout includes top banner, the body, and two right side bars.
I suppose I could change the global Genisis Page Layout to be a full page and, if possible, individully change the each Event Page to have both side bars. But currently, the Templates as a Page Attributes do not include the additional layout options.
So how do I set the Single Event URLs to include the two right side bars by using the “Default (WP Theme) Page Template.” At the same time set the Multiple Events URL uses the “Default (Modern Tribe) Events Template.”
In short, I would like the multiple event month to not have sidebars, and the single event to have the two right sidebars.
September 5, 2014 at 11:32 am #725053Brian
MemberHi Again!
I found a bunch of different topics that may help you out and I have some coding I can share that I have used in the past to add the sidebar in Genesis to the Single Events Page.
One thing I did notice was that if you use the Tribe Template set in the Event Settings the filters for Genesis to Add Sidebars and such do not work. I am not 100% certain of this, but just to be on the look out for that.
Edit single-events.php
If you follow our Themer’s Guide to get the single-event.php into your theme you can modify it to add the sidebar or sidebars(works for Organizer and Venue too):
https://theeventscalendar.com/support/documentation/events-calendar-themers-guide/Once there outside of the ‘#tribe-events-content’ div on the bottom I added:
<aside itemtype="http://schema.org/WPSideBar" itemscope="itemscope" role="complementary" class="sidebar sidebar-primary widget-area">
<?php if ( ! dynamic_sidebar( 'sidebar' ) && current_user_can( 'edit_theme_options' ) ) {
genesis_default_widget_area_content( __( 'Primary Sidebar Widget Area', 'genesis' ) );
} ?>
</aside>That adds the primary sidebar and you could add others there too.
The css will still have the event area full width, but if you add in the body class for single events or related and target ‘#tribe-events-content’ you can shrink it on the single views to make the sidebar fit.
If you play around with that you should be able to get it how you would like.
More Resources
Here are a bunch of other links with different methods and results that you may find useful.
Add Content Sidebar To Genesis Child Theme – this will add a sidebar on all Events Pages
Default Page Template is broken with Genesis themes – may help troubleshoot an issueLet me know if you run into any issues.
Thanks
October 1, 2014 at 4:32 pm #781622Brian
MemberSince I haven’t heard back from you here, I’m going to go ahead and close out this thread. Feel free to start a new thread if you have further issues. Thanks! 🙂
-
AuthorPosts
- The topic ‘How do I set the single event URL to use the Default (WP Theme) Page Template…’ is closed to new replies.
