• Resolved talk2ameya

    (@talk2ameya)


    My website: Million Experiences

    I created a child theme with the following code in the style.css of child:

    /*
    Theme Name: Hemingway Rewritten Child Theme
    Author: Ameya
    Template: hemingway-rewritten-wpcom
    */

    The functions.php in the child theme contains:

    <?php
    /**
     * Enqueues child theme stylesheet, loading first the parent theme stylesheet.
     */
    function hemingwayrewritten_custom_enqueue_child_theme_styles() {
    	wp_enqueue_style( 'parent-theme-css', get_template_directory_uri() . '/style.css' );
    	wp_enqueue_style( 'child-style', get_stylesheet_uri(), array( 'theme-style' ) );
    }
    add_action( 'wp_enqueue_scripts', 'hemingwayrewritten_custom_enqueue_child_theme_styles', 11 );
    ?>

    The child theme has been activated.

    However, the code that I place in the child style.css is not reflected on the site.

    I have tried using @import in style.css instead of the functions.php, but to no avail.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You’ve forgotten the ending bracket after

    .site-footer input[type="submit"] {
    	background: #dd9933;

    Besides that, everything seems to be working fine. Are you using a caching plugin? If so, you should temporarily disable it while you edit your site.

    Thread Starter talk2ameya

    (@talk2ameya)

    I used the Simple Custom CSS plugin and it works fine now.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Theme: Hemingway Rewritten] Child theme changes not reflecting’ is closed to new replies.