Home › Forums › Welcome! › Pre-Sales Questions › Calendar search section not displaying correctly
- This topic has 6 replies, 1 voice, and was last updated 10 years, 5 months ago by
Nico.
-
AuthorPosts
-
December 9, 2015 at 4:31 am #1038031
Alan
GuestHi
I’m currently evaluating a few different WP events systems and I’m liking yours a lot 🙂
Just one weird thing – the main monthly view seems to display with a blank block above the search parameters. You can see it here: http://conwydisabilitynetwork.info/mt_events/
This site is on a Genesis theme called Executive Pro.
If you can help to resolve this, I’m pretty confident we’ll be buying the Pro version, and in time the Community add on too.
I have already tried the various options in Events Settings > Display > Events templates.
One of them produces a full width version which displays correctly (no weird block at the top) but I want the calendar to appear on a normal “blog” style page, with the sidebar etc.Kind regards
AlanDecember 9, 2015 at 3:28 pm #1038517Nico
MemberHi Alan,
Thanks for reaching out and for your interest in our products 🙂
I can clearly see your issue, but I’m not able to find whats causing it in a simple scan. What I do see if you have two errors in the browser console related to 404 file generated by some escaping failing, Can you check on that? Maybe it’s generating the display glitch.
Please get back to me when you fix those and I’ll give this another quick look.
Best,
NicoDecember 17, 2015 at 6:23 am #1042900Alan
GuestHi Nico,
This seems to be related to the Genesis theme option to include the featured image in the content archives.
If I untick this, the calendar view displays correctly.
But, I like having the featured image on the blog archive, so I don’t want to turn that off.I’m guessing it should be possible to add a filter to my functions.php to not show the featured image if it’s trying to display content from the Events Calendar?
This is the only thing holding me back from becoming your customer, so I’m hoping you can help.
Kind regards
AlanDecember 17, 2015 at 11:32 am #1043102Nico
MemberHey Alan,
Thanks for following-up on this! Regarding your question:
I’m guessing it should be possible to add a filter to my functions.php to not show the featured image if it’s trying to display content from the Events Calendar?
Yeap, that sounds like the way to go. I’m not much familiarized with the Genesis theme, maybe it’s best for you to reach out to them on how to enable/disable this functionality. With that I can surely integrate the The Events Calendar part to disable this on event pages/archives.
Please let me know about it,
Best,
NicoDecember 17, 2015 at 2:29 pm #1043194Alan
GuestI’ve posted on their forum, but I did find a related thread.
This approach aims to add the genesis sidebar to the Events Calendar “default events template”, rather than trying to filter out the Genesis featured image from the Events Calendar “default page template”.
Sadly, it didn’t work for me, but maybe it helps to provide you with some ideas about how to get around this?Here’s what it suggested:
Here is the updated code for it to work with Genesis HTML 5 themes. Just put it here: [your-theme]/tribe-events/default-template.php
If anyone can see any errors or improvements please don’t be shy.
<?php
/* Default Events Template – Customised for Genesis HTML5 themes */if ( !defined(‘ABSPATH’) ) { die(‘-1’); }
get_header(); ?>
<div class=”content-sidebar-wrap”>
<main class=”content”>
<div id=”tribe-events-pg-template”>
<?php tribe_events_before_html(); ?>
<?php tribe_get_view(); ?>
<?php tribe_events_after_html(); ?>
</div> <!– #tribe-events-pg-template –>
</main><aside id=”sidebar” class=”sidebar sidebar-primary widget-area”>
<?php do_action( ‘genesis_sidebar’ ) ?>
</aside></div>
<?php get_footer(); ?>December 18, 2015 at 1:10 am #1043301Alan
GuestOK, a very kind guy called Tom posted the solution on the StudioPress forum for me.
Create a new file called default-template.php and put it here:
/wp-content/themes/<your-theme>/tribe-events/default-template.phpFinally, in Events Calendar > Settings > Display > Set it to Default Event Template.
This code basically adds the Genesis sidebar to the Default Events Template. It works!
Hope this helps somebody else out.The default-template.php needs to include this code:
<?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();
?>December 18, 2015 at 6:51 am #1043592Nico
MemberHey Alan,
Thanks a lot for posting the solution! Glad you could sort this out 🙂
I’ll go ahead and close out this thread, but if you need help with anything else please don’t hesitate to create a new one and we will be happy to assist you.
Best,
Nico -
AuthorPosts
- The topic ‘Calendar search section not displaying correctly’ is closed to new replies.
