• Hi. Ive tried to exclude the parent woocommerce css styling in order to let my child styling do the job, but without any luck. It doesnt activate my woocommerce child-theme, since the URL on the website is not changing. Can you see where the problem is? My website is: here

    I have added following to the functions.php in my theme:

    —————————–

    <?php

    //Storefront child
    add_action( ‘wp_enqueue_scripts’, ‘enqueue_parent_styles’ );
    function enqueue_parent_styles() {
    wp_enqueue_style( ‘parent-style’, get_template_directory_uri().’/style.css’ );
    }

    //Woocommerce
    add_filter( ‘woocommerce_enqueue_styles’, ‘__return_false’ );

    function wp_enqueue_woocommerce_style(){
    wp_register_style( ‘woocommerce’, get_stylesheet_directory_uri() . ‘/css/woocommerce.css’ );
    if ( class_exists( ‘woocommerce’ ) ) {
    wp_enqueue_style( ‘woocommerce’ );
    }
    }
    add_action( ‘wp_enqueue_scripts’, ‘wp_enqueue_woocommerce_style’ );

    ——————————–

  • The topic ‘Issues customising woocommerce styles’ is closed to new replies.