Viewing 16 posts - 1 through 16 (of 16 total)
  • Author
    Posts
  • #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?
    David

    Adding 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 truly

    #446653

    Hi,

    Can you please create us a WordPress administrator account? post it here as a private reply.

    Regards,
    Josue

    #446687
    This reply has been marked as private.
    #446690

    Hey 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,
    Josue

    #446729

    Thanks 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

    #446797

    Hm, 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!
    Josue

    #713119

    Any progress on enabling the disablement of the style override in child theme?

    #714239

    Hey!

    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,
    Ismael

    #950852

    Just an fyi…
    There is a typo-
    remove_action(‘tribe_events_template’, ‘avia_events_tempalte_paths’, 10, 2);

    Awesome info though.

    Thanks much!

    #951551

    Hi xyzb,

    Thank you for the input!

    Glad the info was helpful.

    Best regards,
    Victoria

    #1027756

    Using the child theme solution I get

    Error thrown
    Class ‘Tribe__Events__Pro__Main’ not found

    in site and wp-admin

    I found some other typos I think — avia spelled ava

    #1027878

    Hi,

    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,
    Ismael

    #1028199

    I’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?

    #1029067

    Hi,

    What do you mean? Do you see any layout issues? Please open a new ticket.

    Best regards,
    Ismael

    #1029250

    No 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

    #1030182

    Hi,

    I think you’re better off using the theme style because it’s actually created to integrate the design/layout of both the theme and the plugin and it also fixes initial layout issues that you might encounter on a native/default plugin style.

    Best regards,
    Ismael

Viewing 16 posts - 1 through 16 (of 16 total)
  • You must be logged in to reply to this topic.