• Resolved -MJ-

    (@mj-3)


    In CSS i found class .fc-unthemed. Are there any themes for calendar yet? Is there a special workaround for theming already or should i add myself plain css afterwards.

    Thank you in advance.
    MJ

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author yoancutillas

    (@yoancutillas)

    Hello MJ,

    Yes you can theme your calendar with jquery-ui or bootstrap4.
    You need a child theme for that.

    In this child theme, create a javascript file my-theme-js.js with this code:

    jQuery( document ).ready( function() {
    	jQuery( '.bookacti-booking-system' ).on( 'bookacti_after_calendar_set_up', function(){
    		var calendar = $j( this ).find( '.bookacti-calendar:first' );
    		calendar.fullCalendar( 'option', 'themeSystem', 'bootstrap4' ); // Replace 'bootstrap4' with 'jquery-ui' if you rather use it
    	});
    });

    Create / download your bootstrap4 / jquery-ui theme (it is just a CSS file), rename it my-theme-css.css, and put this file in your child theme.

    FullCalendar provides some examples here.

    In the functions.php file of your child theme add this code:

    function my_theme_enqueue_fc_theme_scripts() {
    	wp_enqueue_script( 'my-theme-js', get_stylesheet_directory_uri() . '/my-theme-js.js', array( 'jquery' ), false, true );
    	wp_enqueue_style( 'my-theme-css', get_stylesheet_directory_uri() . '/my-theme-css.css' ); 
    }
    add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_fc_theme_scripts', 5 );

    Regards,
    Yoan Cutillas

    Thread Starter -MJ-

    (@mj-3)

    Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Calendar Theming’ is closed to new replies.