-
AuthorPosts
-
May 19, 2015 at 6:00 pm #446610
I’m using the latest Enfold Theme…and just downloaded Events Calendar Pro.
I would like it to work within my Enfold Templates…but I see no option in the Events>Settings>Display for Default templates as indicated in the directions.
Can you help?
DavidAdding Custom Styles
The Events Calendar offers 3 default style options to choose from:
Skeleton Styles – Includes only enough CSS to achieve complex layouts like calendar and week view
Full Styles – More detailed layouts, relying heavily on your theme’s typography and colors
Tribe Events Styles – A fully design and styled theme for your events pages, from yours trulyMay 19, 2015 at 7:19 pm #446653Hi,
Can you please create us a WordPress administrator account? post it here as a private reply.
Regards,
JosueMay 19, 2015 at 8:31 pm #446687This reply has been marked as private.May 19, 2015 at 8:35 pm #446690Hey David!
Yes, that’s correct. Enfold modifies the Event Calendar plugin in order to integrate it with the theme, part of this is removing the (3) styles options included with the plugin to use the theme ones instead. If you don’t like this you can simply remove this line in functions.php and use the plugin standalone:
require_once( 'config-events-calendar/config.php' ); //compatibility with the Events Calendar plugin
Regards,
JosueMay 19, 2015 at 9:44 pm #446729Thanks Josue,
If I want to remove this in my Child Functions.php file —
Instead of commenting it out in the Enfold theme (because of updates)
What would the code be?
David
May 20, 2015 at 12:14 am #446797Hm, that’s not possible but right now but i’ll let Kriesi know about this, maybe we implement a way of disabling The Events Calendar from a child theme in the future.
Cheers!
JosueNovember 16, 2016 at 6:39 pm #713119Any progress on enabling the disablement of the style override in child theme?
November 19, 2016 at 5:19 am #714239Hey!
Please add the following hook in the functions.php file. This should remove every plugin modifications added by the theme.
add_action('after_setup_theme', 'ava_disable_events_mod', 50); function ava_disable_events_mod() { $tec = Tribe__Events__Pro__Main::instance(); remove_action('wp_enqueue_scripts', 'avia_events_register_assets',15); remove_action('tribe_events_template', 'avia_events_tempalte_paths', 10, 2); remove_action('option_tribe_events_calendar_options', 'avia_events_perma_options', 10); remove_action('tribe_general_settings_tab_fields', 'avia_events_general_tab', 10); remove_action('tribe_display_settings_tab_fields', 'avia_events_display_tab', 10); remove_action( 'tribe_events_cost_table', 'avia_events_upsell', 10); remove_action( 'avia_post_nav_entries', 'avia_events_custom_post_nav', 10); remove_filter('avia_breadcrumbs_trail','avia_events_breadcrumb'); remove_action( 'tribe_events_before_the_event_title', 'avia_events_content_wrap', 10); remove_action( 'tribe_events_after_the_event_title', 'avia_events_open_outer_wrap', 10); remove_action( 'tribe_events_after_the_meta', 'avia_events_open_inner_wrap', 10); remove_action( 'tribe_events_after_the_content', 'avia_events_close_div', 1000); remove_action( 'tribe_events_after_the_content', 'avia_events_close_div', 1001); remove_action( 'tribe_events_after_the_content', 'avia_events_close_div', 1003); remove_action( 'tribe_events_single_event_after_the_content', array( $tec, 'register_related_events_view' ) ); }
Regards,
IsmaelMay 3, 2018 at 3:36 pm #950852Just an fyi…
There is a typo-
remove_action(‘tribe_events_template’, ‘avia_events_tempalte_paths’, 10, 2);Awesome info though.
Thanks much!
May 4, 2018 at 11:33 am #951551Hi xyzb,
Thank you for the input!
Glad the info was helpful.
Best regards,
VictoriaOctober 29, 2018 at 9:30 pm #1027756Using the child theme solution I get
Error thrown
Class ‘Tribe__Events__Pro__Main’ not foundin site and wp-admin
I found some other typos I think — avia spelled ava
October 30, 2018 at 6:27 am #1027878Hi,
Look for this line:
remove_action('tribe_events_template', 'avia_events_tempalte_paths', 10, 2);
Replace it with:
remove_action('tribe_events_template', 'avia_events_template_paths', 10, 2);
Best regards,
IsmaelOctober 30, 2018 at 7:19 pm #1028199I’ve been playing with this option and going crazy with the different style sheet permutations and settings in TEC and comparing them with the Enfold version.
Tell, me are you able to provide better support if I just let Enfold control the styles?
November 2, 2018 at 8:46 am #1029067Hi,
What do you mean? Do you see any layout issues? Please open a new ticket.
Best regards,
IsmaelNovember 2, 2018 at 6:08 pm #1029250No issue. Just curious if its better, in terms of support, if I use the Enfold style instead the TEC style options (with code above) if there is a layout issue
November 6, 2018 at 5:07 am #1030182 -
AuthorPosts
- You must be logged in to reply to this topic.