• Hi

    When using child theme for the store I simply add this to functions.php:

    function child_enqueue_styles() {
    $parent_style = ‘parent-style’;
    wp_enqueue_style( $parent_style, get_template_directory_uri() . ‘/style.css’ );
    wp_enqueue_style( ‘child-style’, get_stylesheet_directory_uri() . ‘/style.css’, array( $parent_style ) );

    But you have multiple CSS files in css folder. One which is responsible for responsive version of the page – responsive.css

    So the question is generic for your themes: how to load multiple files to override the parent?

    I tried to add:

    wp_enqueue_style( ‘responsive’, get_stylesheet_directory_uri() . ‘/css/responsive.css’);

    But this doesnt work 🙁 Could you help?

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

    We really appreciate you writing in.
    We would like to inform you that if you create the child theme and include style.css tile the responsive.css automatically inherit in the child theme.
    Please see the link : https://codex.wordpress.org/Child_Themes

    Thank you.

    Thread Starter mikehaceman

    (@mikehaceman)

    yes your responsive.css is loaded not the modifed child-responsive.css

    Ill try ask the same question again:

    How to load multiple css as child, because Codex from wordrpess does not work in your theme.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Load multiple CSS for child’ is closed to new replies.