• I’m trying to make some changes to my theme-styles.css file but the browser continues to read whichever updates I make to the original theme-styles.css file.

    I’ve replicated the folder tree which is theme/assets/css/theme-styles.css.

    I’ve also added the following to the main styles.css file which appears in the original
    @import url(assets/css/theme-styles.css); (not sure if this was necessary, in any case it made no difference)

    Am I overlooking something ?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter paulhutton

    (@paulhutton)

    To clarify the above, the theme-styles.css file I wish to amend is in my child theme

    how do you call the theme-style.css in your child theme?
    are you enqueuing that stylesheet in your child theme?

    https://codex.wordpress.org/Child_Themes

    what does the developer of your theme say to your issues?

    Thread Starter paulhutton

    (@paulhutton)

    Hi Michael, thanks for your reply.

    Currently in my functions.php file I have the following:

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

    I guess this is pulling through the main css file which itself contains only this:

    @import url(assets/css/normalize.css);
    @import url(assets/css/icomoon.css);
    @import url(assets/css/theme-styles.css);
    @import url(assets/css/woocomerce.css);

    Do I need to add additional code in the functions.php file to pull through the theme-styles.css file?

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