Support » Theme: Colorskin » Creating a child theme from Colorskin

  • Resolved christopherjeffery

    (@christopherjeffery)


    Dear Dimitrakopoulos

    Thank you for a great Colorskin theme.

    I am trying to create a Child theme, however it doesn’t appear to be working properly and doesn’t show any of the CSS.

    I have tried to configure the style.css page based upon the documentation on
    https://codex.wordpress.org/Child_Themes.

    Can you please assist?

    Many thanks

    Chris

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Theme Author Dimitrakopoulos

    (@effpandim)

    Hi @christopherjeffery

    You have to create 2 files in folder colorskin-child
    functions.php and style.css
    in function.php paste:

    <?php
    /**
     * Your code here.
     *
     */
     
    // Add style.css
    function colorskin_child_enqueue_styles() {
        wp_enqueue_style( 'child-style', get_stylesheet_uri() );
    }
    add_action( 'wp_enqueue_scripts', 'colorskin_child_enqueue_styles', 11 );

    and style.css

    /*
    Theme Name: Colorskin Child
    Author:
    Author URI:
    Description:
    Version: 1.0.0
    Template: colorskin
    */
    
    @import url("../colorskin/style.css");

    Inform me if it works.

    Regarts

    Dear Dimitrakopoulos

    Yes, this worked for me – thank you very much!

    Thanks again

    Chris

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