• Resolved russnem

    (@russnem)


    Hello,

    I’m queueing up my styles just fine, but for some reason at the bottom of the list is this:

    <link rel=’stylesheet’ id=’storefront-style-css’ href=’https://stagingnsd.wpengine.com/wp-content/themes/storefront/style.css?ver=3.9.1&#8242; media=’all’/>

    I cannot figure out where this is coming from, and it is overriding all of the styles I put in my child theme css. I even tried to specify 11 in the 3rd parameter to force it to go last but this phantom style reference always gets added at the bottom.

    Can anyone tell me how I can prevent this? dequeue didn’t work.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi there,

    Thanks for reaching out.

    Can you please try to use the following child theme:

    https://github.com/stuartduff/storefront-child-theme

    If you would like to dequeue the style sheet from the Storefront theme. You can uncomment the following line of code from the functions.php file:

    If you don’t want to dequeue the file and would like to load your child theme style after the Storefront style.css file, you can use the following code to enqueue the style correctly.

    wp_enqueue_style( 'childtheme', get_stylesheet_directory_uri().'/css/style.css', array('storefront-style') );

    I have used the ‘$deps’ variable to make this style file dependable on the parent theme style.css file.

    I hope it helps!

    Best

    Hi there @russnem,

    We haven’t heard back from you for a while, so I’m going to mark this post as resolved now.

    If you need any further help here, please let us know. Or, if you need additional help with the Storefront theme, please start a new thread and we’ll be able to help you out there.

    Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Parent theme style enqueueing’ is closed to new replies.