• Resolved datahound2u

    (@datahound2u)


    I created a child theme, and I put the following in the child’s style.css file, but it doesn’t seem to work. Did I do anything wrong?

    <?php
    function my_theme_enqueue_styles() {

    $parent_style = ‘deejay-style’; // This is ‘deejay-style’ for the Deejay theme.

    wp_enqueue_style( $parent_style, get_template_directory_uri() . ‘/style.css’ );
    wp_enqueue_style( ‘child-style’,
    get_stylesheet_directory_uri() . ‘/style.css’,
    array( $parent_style ),
    wp_get_theme()->get(‘Version’)
    );
    }
    add_action( ‘wp_enqueue_scripts’, ‘my_theme_enqueue_styles’ );
    ?>

Viewing 3 replies - 1 through 3 (of 3 total)
  • Theme Author Carolina Nymark

    (@poena)

    Hi!
    I’m sorry for the late reply.
    -I tried your code and the child themes style sheet loads correctly after the parent themes style sheet.

    Can you provide more details of what is not working?

    Thread Starter datahound2u

    (@datahound2u)

    It’s working now. I’m not sure when it changed. It may have been a cache issue.

    Still love the theme! I left a rating and comment.

    If I have any more issues, I’ll be sure to let you know.

    –M

    Theme Author Carolina Nymark

    (@poena)

    Marking as resolved.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Child Theme’ is closed to new replies.