• Resolved mvimard

    (@mvimard)


    Hello,

    I apologize for this stupid question but I’m stuck with a basic child theme question.
    I have done everything described in wordpress developer’s documentation but even if the child style.css is loaded on my website the change I have made in my child style.css doesn’t override the chaplin style.css.

    The chaplin style.css is the one used first even if I modify child css.

    Child style.css

    /*
    	Theme Name: Chaplin Child
    	Description: Chaplin child 
    	Template: chaplin
    	Version: 1.1.2
    */
    
    a {
    	color: #007C89;
    	text-decoration: none;
    }
    

    function.php as described in the documentation (tried both options)

    
    <?php
    add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' );
    function my_theme_enqueue_styles() {
     
        $parent_style = 'parent-style'; // This is 'twentyfifteen-style' for the Twenty Fifteen 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')
        );
    }
    

    It’s works fine with other theme. (I replaced chaplin by twentytwenty in style.css of my child theme and it works.

    Sorry about that, but if somebody have any clue…

    Thanks

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

Viewing 1 replies (of 1 total)
  • Thread Starter mvimard

    (@mvimard)

    I finally went through a plugin to generate the child theme…
    Anyway thanks for the great job on the Chaplin theme !

Viewing 1 replies (of 1 total)
  • The topic ‘child theme not working’ is closed to new replies.