Forum Replies Created

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

    (@tuanny87)

    if i want to add in another css thats in the child folder in assets\css\shop.css is this correct?. i tried it and for the most part looks like it worked but its prioritizing some changes from the parent. how do i set it so it reads the child css last. or at least prioritizing it because if i delete the file in the parent then its works so im guessing its prioritizing the parent.

    <?php
    add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
    function theme_enqueue_styles() {
    wp_enqueue_style(
    'child-style',
    get_stylesheet_directory_uri() . '/style.css',
    [
    'child-theme-style',
    ],
    '1.0.0'
    );
    wp_enqueue_style( 'shop', get_stylesheet_directory_uri() . '/assets/css/shop.css' );
    }
    // END ENQUEUE PARENT ACTION
    • This reply was modified 2 years, 9 months ago by tuanny87.
    • This reply was modified 2 years, 9 months ago by tuanny87.
Viewing 1 replies (of 1 total)