Community Forums › Forums › Archived Forums › Design Tips and Tricks › Events Calendar (Modern Tribes) with Genesis??
Tagged: events calendar
- This topic has 6 replies, 3 voices, and was last updated 8 years, 4 months ago by squid74.
-
AuthorPosts
-
December 17, 2015 at 4:19 pm #174134deadhead1971Participant
Hello all,
I'm having a problem with Events Calendar within a site using Executive Pro.
I want the calendar to appear on the standard content/sidebar template, as per the posts and pages on my site.
To do this, I'm selecting the Events Calendar > Settings > Display > Default Page Template.
But this causes the calendar to be displayed with a thick grey band to appear above the calendar, the same height as the featured image would be. (I have the Featured image box ticked on my Genesis archive settings)If I choose the Default Events Template, this works ok, but is full screen (no sidebar).
If I untick the featured images box, the calendar displays properly, with the sidebar, but of course I lose all the featured images on my blog archive pages!
So, how can we tell Events Calendar to not show featured images, OR, how can I add a sidebar to the view to the standard Events Calendar "events template". This has been covered in this post, but it didn't work for me http://www.studiopress.community/topic/add-sidebar-to-events-calendar-page-template/
Grateful for any help
thanks
AlanMy test page is http://test.conwydisabilitynetwork.info/events/ - you'll see the odd grey border at the top, above the calendar search area.
http://test.conwydisabilitynetwork.info/events/December 18, 2015 at 12:59 am #174179TomParticipanthow can I add a sidebar to the view to the standard Events Calendar “events template”.
Hi Alan,
This is the template I've found to work for this with The Events Calendar.In the default template (file: /wp-content/themes/<theme-slug>/tribe-events/default-template.php):
<?php /** * Default Events Template * This file is the basic wrapper template for all the views if 'Default Events Template' * is selected in Events -> Settings -> Template -> Events Template. * * Override this template in your own theme by creating a file at [your-theme]/tribe-events/default-template.php * * @package TribeEventsCalendar * */ /* Default Events Template - Customised for Genesis HTML5 themes */ if ( ! defined( 'ABSPATH' ) ) { die( '-1' ); } remove_action( 'genesis_before_loop', 'genesis_do_breadcrumbs' ); remove_action( 'genesis_loop', 'genesis_do_loop' ); add_action('genesis_loop','genesis_tribe'); function genesis_tribe() { ?> <div id="tribe-events-pg-template"><?php tribe_events_before_html(); tribe_get_view(); tribe_events_after_html(); ?> </div> <?php }
Choose your next site design from over 350 Genesis themes.
[ Follow me: Twitter ] [ Follow Themes: Twitter ] [ My Favourite Webhost ]December 18, 2015 at 1:54 am #174182deadhead1971ParticipantHi Tom,
Thanks so much for responding 🙂
But I'm sorry to say that just gave me a white screen...Alan
December 18, 2015 at 2:05 am #174183TomParticipantTotally my mistake in copying too quickly and missing a couple lines.
<?php /** * Default Events Template * This file is the basic wrapper template for all the views if 'Default Events Template' * is selected in Events -> Settings -> Template -> Events Template. * * Override this template in your own theme by creating a file at [your-theme]/tribe-events/default-template.php * * @package TribeEventsCalendar * */ /* Default Events Template - Customised for Genesis HTML5 themes */ if ( ! defined( 'ABSPATH' ) ) { die( '-1' ); } remove_action( 'genesis_before_loop', 'genesis_do_breadcrumbs' ); remove_action( 'genesis_loop', 'genesis_do_loop' ); add_action('genesis_loop','genesis_tribe'); function genesis_tribe() { ?> <div id="tribe-events-pg-template"><?php tribe_events_before_html(); tribe_get_view(); tribe_events_after_html(); ?> </div><?php } genesis(); ?>
Choose your next site design from over 350 Genesis themes.
[ Follow me: Twitter ] [ Follow Themes: Twitter ] [ My Favourite Webhost ]December 18, 2015 at 3:03 am #174184deadhead1971ParticipantTom,
You Sir, are a star!
Thanks so much. I hope I can repay the favour some time.Kind regards
AlanDecember 18, 2015 at 8:56 am #174208TomParticipantGood luck with your project, Alan. TEC can be frustrating at times, but usually can get the job done.
Choose your next site design from over 350 Genesis themes.
[ Follow me: Twitter ] [ Follow Themes: Twitter ] [ My Favourite Webhost ]July 29, 2016 at 10:33 am #190448squid74ParticipantThanks!!! Glad I found this, it worked for me.
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.