• Resolved claytybabe

    (@claytybabe)


    Hello,

    I have created a child theme based on Astra and have added the Woocommerce checkout page successfully. Functionally it works, however there is no CSS being applied to the checkout page (or any of the other WC pages). I have tried moving the relevant template files over to the child theme (which does work, I can edit them and the relevant content is shown/adjusted) however by default there is nothing applied.
    I have added WC support in my functions.php.
    When I switch over to the Astra parent theme all styling and a bit of JS is loaded and the page displays as it should. The same is true with other parent themes (storefront etc).
    Checking the network console I can see the parent themes are loading from woocommerce-gateway-stripe/assets/stripe-style.css etc. (and many other resources, which applies all the classes etc to the page) and when I manually add the css being called to the childs template it is applied.

    The question is:
    How can I get my astra child theme to load all relevant styling etc the same as the parent theme does? Omitting the template files makes no difference.

    My website is currently in maintenance mode and I would prefer not to open it until I have finished it.

    Thanks,

    • This topic was modified 2 years, 8 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Developing with WordPress topic
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter claytybabe

    (@claytybabe)

    Just called do_action('wp_head'); in the checkout template and had some success, it loaded pretty much all of the parent CSS, there still seems to be some JS missing however.

    Thread Starter claytybabe

    (@claytybabe)

    Just got the rest of it working by calling do_action('wp_footer'); ^_^

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WooCommerce CSS Working for Parent Theme But Not Child’ is closed to new replies.