• I recently moved my theme and content from a local WordPress setup to a staging environment and my CSS style overrides in my child theme are no longer overwriting the themes Parent Css.

    It appears to be loading in the front end but no working. The child theme is active and functioning and my functions.php has this

    <?php
    add_action( 'wp_enqueue_scripts', 'enqueue_parent_styles' );
    
    function enqueue_parent_styles() {
       wp_enqueue_style( 'parent-style', get_template_directory_uri().'/style.css' );
    }
    ?>

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Are you sure your child theme folder is intact? I get a file not found error when I try to examine the child theme stylesheet:
    https://xh3.afa.myftpupload.com/wp-content/themes/child-theme-colormag/style.css

    I also see errors having to do with the Shortcodes Ultimate plugin files.

    Thread Starter withatitude

    (@withatitude)

    I get that same error. But when expecting the WordPress theme editor the stylesheet shows up first.

    I’ll look into the shortcodes plugin thing. Also, I have advanced custom fields throwing an error when I disable it. It disables the theme.

    Use an FTP client or your host’s cPanel to make sure the child theme folder is still there and that the style.css file is in it.

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