Support » Plugin: CC Child Pages » Option not to load skins

  • Resolved Eric3D


    It would be nice to have an option to disable enqueueing the skins.css file, especially if none of the skins are used. I know it’s not a large file, but it adds up.

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


    This is probably a good idea … I am tied up with sad family matters at present, but once I am back on the case I will add a check box to the settings page to disable loading of the default skins CSS file.

    In the meantime, a solution may be to add something along the lines of the following to the functions.php file of your theme (or child theme):

    add_action( 'wp_enqueue_scripts', 'remove_cc_skins_stylesheet', 20 );
    function remove_cc_skins_stylesheet() {    
        wp_dequeue_style( 'ccchildpagesskincss' );
        wp_deregister_style( 'ccchildpagesskincss' );

    This should dequeue the CSS for the skins but leave the layout CSS in place and untouched.

    I hope that this helps.

    Plugin Author caterhamcomputing


    I have released a new version of the plugin which includes an option not to load the skins CSS in the Settings->CC Child Pages options.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Option not to load skins’ is closed to new replies.