-
AuthorPosts
-
August 19, 2016 at 8:22 am #674579
Hi,
after updating “the events calendar” (TEC) to 4.2.5 the sidebar is not visible on websites showing events. We are using the theme enfold (last version).
When installing TEC 4.2.4 anything is ok.
When installing another theme (for example logger) also anything is ok.We have contact support of TEC, but they meant, we should ask you:
https://theeventscalendar.com/support/forums/topic/sidebar-not-visible-after-updating-tec-to-4-2-5/#post-1153494In the beginning of using enfold we had the same problem – see here:
The described solution has worked fine, but now – after updating TEC to 4.2.5 – the sidebar is not yet visible.
Important additional information:
https://theeventscalendar.com/support/forums/topic/sidebar-not-visible-after-updating-tec-to-4-2-5/#post-1154113Best regards
Hans-Gerd- This topic was modified 8 years, 4 months ago by hagege. Reason: thread in TEC-Forum
August 24, 2016 at 5:08 pm #677128Hey hagege,
Please deactivate all plugins one by one to check which one is causing this issue and let us know if this solves the problem.
In addition to that, please let us know if we are allowed to deactivate one or more of your plugins as well for testing purposes :)Best regards,
AndyAugust 24, 2016 at 5:41 pm #677155Hey Andy,
thanks for your answer and advice.I have deactivated all plugins one by one and checked if one is causing the issue. Unfortunately this doesn’t solve the problem.
I had already written in my previous post that on this side everything can be changed. Plugins can be also deactivated of course (however, this has already happened up to the TEC-plugins).
Very Important additional information – please read this:
https://theeventscalendar.com/support/forums/topic/sidebar-not-visible-after-updating-tec-to-4-2-5/#post-1154113Best regards
Hans-Gerd- This reply was modified 8 years, 3 months ago by hagege.
August 25, 2016 at 9:38 pm #677743August 26, 2016 at 10:04 am #678030Hi Andy,
thanks for answer and your assistance.We have used the code snippet until now from your first link in our funtcions.php:
https://kriesi.at/support/topic/how-to-display-the-sidebar-in-events-calendar-pages/#post-356399add_action('tribe_events_template', 'avia_events_tempalte_paths', 10, 2); function avia_events_tempalte_paths($file, $template) { $redirect = array('default-template.php' , 'single-event.php' , 'pro/map.php' ); if(in_array($template, $redirect)) { $file = AVIA_EVENT_PATH . "views/".$template; } return $file; }
since updating to TEC 4.2.5, the code snippet no longer works as it did before.
We could find out that the access on the changed files with sidebar ‘default-template.php’ and ‘single event.php’ in the path of our enfold childtheme doesn’t work like before (…/views/).
It seems in such a way that ‘default-template.php’ and ‘single event.php’ from parent theme enfold will be executed.It works, when deleting the following code in TEC version 4.2.5. In 4.2.4 this was not yet in ..\the-events-calendar\src\Tribe\templates.php
} else { $file = apply_filters( 'tribe_events_template', $file, $template ); }
Additional information:
If I exchange the file default-template.php in the Parent theme of Enfold (wp-content/themes/enfold/config-events-calendar/views)
against the file from our childtheme (with sidebar), it works.
So it has to do with the fact, that default-template.php from child theme is not executed as before.<?php /* default-template.php with sidebar in child theme*/ global $avia_config; /* * get_header is a basic wordpress function, used to retrieve the header.php file in your theme directory. */ get_header(); $title = tribe_is_month() ? __('Calendar of Events', 'avia_framework') : tribe_get_events_title(false); $args = array('title'=> $title, 'link'=>''); if( !is_singular() || get_post_meta(get_the_ID(), 'header', true) != 'no') echo avia_title($args); do_action( 'ava_after_main_title' ); ?> <div class='container_wrap container_wrap_first main_color fullsize'> <div class='container'> <main class='content <?php avia_layout_class( 'content' ); ?> units' <?php avia_markup_helper(array('context' => 'content'));?>> <div id="tribe-events-pg-template"> <?php tribe_events_before_html(); tribe_get_view(); tribe_events_after_html(); ?> </div> <!-- #tribe-events-pg-template --> <!--end content--> </main> <!--display sidebar --> <?php get_sidebar( $name ); ?> </div><!--end container--> </div><!-- close default .container_wrap element --> <?php get_footer(); ?>
Best regards
Hans-Gerd- This reply was modified 8 years, 3 months ago by hagege. Reason: Additional information
August 31, 2016 at 5:16 am #679786Hi,
Where did you put the default-template.php file? Did you create a “tribe-events” folder inside the child theme? Please add this in the functions.php file:
add_action('after_setup_theme', function() { if(is_child_theme()) remove_action('tribe_events_template', 'avia_events_tempalte_paths', 10, 2); }); add_action('tribe_events_template', 'avia_events_template_paths_mod', 10, 2); function avia_events_template_paths_mod($file, $template) { $redirect = array('default-template.php'); if(in_array($template, $redirect)) { $file = get_stylesheet_directory() . "/tribe-events/views/".$template; } return $file; }
Make sure that the “default-template.php” file is inside the tribe-events > views folder.
Best regards,
IsmaelAugust 31, 2016 at 6:13 pm #680251Hi Ismael,
thank you very much – it works fine. Great solution and advice.Best regards
Hans-GerdAugust 31, 2016 at 6:30 pm #680265Hey!
Please do not hestitate to open a new ticket, if you need further assistance!
Thanks a lot for your patience and understanding
Best regards,
Basilis -
AuthorPosts
- The topic ‘Sidebar not visible after updating "the events calendar" to 4.2.5’ is closed to new replies.