• Resolved weekendize

    (@weekendize)


    Howdy,

    I want to change the style of the calendar editor of your plugin in the background. Unfortunately, the changes of my style.css of my child-theme does not apply in the frontend. Do you have an idea why it doesn’t work?

    Thanks in advance.

    Best,
    weekendize

Viewing 1 replies (of 1 total)
  • Plugin Author yoancutillas

    (@yoancutillas)

    Hello,

    Yes it’s normal, the style.css file of a child theme is not enqueued on backend.

    You need to create another CSS file in your child theme.
    Name this file admin.css, and place it at the root of your child theme.

    Then enqueue it on backend by adding this code to your child theme functions.php:

    function my_theme_load_admin_styles() {
    	wp_enqueue_style( 'my_theme_admin_css', get_stylesheet_directory_uri() . '/admin.css' );
    }
    add_action( 'admin_print_styles', 'my_theme_load_admin_styles', 20 );

    Hard refresh your pages with CTRL+F5 each time you edit this file.

    Regards,
    Yoan Cutillas

Viewing 1 replies (of 1 total)
  • The topic ‘Change CSS of calendar editor in backend’ is closed to new replies.