Home › Forums › Calendar Products › Events Calendar PRO › Genesis Sidebars
- This topic has 5 replies, 2 voices, and was last updated 11 years, 10 months ago by
Brook.
-
AuthorPosts
-
May 31, 2014 at 1:25 pm #194922
Philip Macaulay
ParticipantThere’s clearly no serious concensus on how to achieve sidebars in Genesis using Calendar pro. I have serahced this forum and even previously used this great tutorial https://theeventscalendar.com/tutorial-integrating-the-events-calendar-w-genesis/ produced by yourselves, but which now does not work. Also lots of other suggestions including this uttery vague one https://tri.be/support/forums/topic/add-content-sidebar-to-genesis-child-theme/ . The only way I have found that resolves this (to some extent) is to use the default page template which gives me my theme’s sidebar and works wonderfully but completely breaks the event list view – has anyone out there managed to resolve this issue with genesis sidebars?? Really desperate to resolve this.
Thanks Phil
June 2, 2014 at 8:05 am #198594Brook
ParticipantHowdy Phil,
I do not believe anyone has come up with a better way. You might try looking into creating a custom page template with Genesis. You can select any custom Page Templates that you have created from our WP Admin > Events > Settings > Display “Events template” drop down.
We were just discussing this as a team on Thursday. We would like to improve in this area as more and more people are using Genesis.
It can not hurt to make a “Make TEC compatible with Genesis themes” features request. To do that go to our feature request page: https://tribe.uservoice.com/forums/195723-feature-ideas I would not be surprised if lots of people throw their support behind that feature request. It could definitely help get this going.
I wish I had better news, truly. In the mean time I hope my suggestions above helped. Let me know if you have any questions. Cheers!
– Brook
June 2, 2014 at 8:52 am #198691Philip Macaulay
ParticipantThanks for getting back to me Brook and yes I agree wholeheartedly it would be really useful to accommodate Genesis in future versions. Interestingly though – and my apologies to Barry regarding his suggestion in https://tri.be/support/forums/topic/add-content-sidebar-to-genesis-child-theme/ But this actually happened to help me, rather surprisingly easily, solve my issue. I still think the suggestion was slightly vaque but this is what I ended up doing and it works fine for me – perhaps too many people using Genesis want it all on a plate without doing a little work (I’m guilty of that from time to time) – anyway – here goes.
Firstly – I used the genesis plugin Simple Sidebars to create a sidebar called ‘event-sidebar’ and ensured that in my case I wrapped it in the html5 <aside> class and also that I wrapped everything in the .content-sidebar-wrap class:get_header(); ?>
<div class=”content-sidebar-wrap”>
<div class=”tribe-events-pg-template”>
<?php tribe_events_before_html(); ?>
<?php tribe_get_view(); ?>
<?php tribe_events_after_html(); ?></div> <!– #tribe-events-pg-template –>
<aside class=”sidebar sidebar-primary widget-area”>
<?php dynamic_sidebar(‘event_sidebar’); ?></aside>
</div>
<?php get_footer(); ?>I applied some extra css to position both the .tribe-events-pg-template and the .aside and voila! well not quite as I ended up with sidebars on all my event pages. But actually this was my intention. However if I wanted to have full width on specific pages like the calendar page and I could remove the sidebars completely Display:none and resize the .tribe-events-pg-template for specific pages to be full width. Not exactly elegant but it works for me at least.
Phil
June 3, 2014 at 6:46 am #200988Brook
ParticipantAwesome! Thanks for sharing the solution Phil. I definitely understand the desire of others to have everything just work with no customization. Sadly, we are not there yet.
If you want to make your solution more “elegant” you could use PHP conditions and Tribe functions to do it. For instance:
if( tribe_is_event() && is_single() ) { //your code here }We document our functions here: http://docs.tri.be/
But your method works great too. Thanks again for sharing your solution. Cheers!
– Brook
June 3, 2014 at 7:01 am #201045Philip Macaulay
ParticipantThanks Brook
June 7, 2014 at 8:15 am #211569Brook
ParticipantYou are of course very welcome Phil! I was just closing out some older topics like this one. If you have a minute or two, we would love it if you could write a few words about the plugin here. Cheers!
– Brook
-
AuthorPosts
- The topic ‘Genesis Sidebars’ is closed to new replies.
