WordPress.org

Support

Support » Themes and Templates » [Resolved] child theme not importing multiple .css files

[Resolved] child theme not importing multiple .css files

  • I have created a child theme for hero and it is only importing the style.css. When I try to make changes to the other .css files like superfish.css, nothing changes. How do I make the child theme work with these other .css files?
    Below the @import (“../hero/style.css”); I tried adding these but nothing happens:
    @import (“../hero/superfish.css”);
    @import (“../hero/reset.css”);

    I also tried copying the superfish.css file into the style.css and it still did not work. Any help would be much appreciated.

Viewing 4 replies - 1 through 4 (of 4 total)
  • I just needed to copy the child to the parent theme and everything worked

    nosfer4tu
    Member

    @nosfer4tu

    Having the same issue but I don’t think this is actually resolved, because copying the child to the parent theme will only work until you update the theme and it resets. Any ideas?

    The parent theme will only change if you do all your editing with the parent theme. Make sure you are using the child theme as your main theme. Also do all the editing within the child theme and when you go to update, back up your site and child theme folder. Make sure the parent theme is chosen as your main theme when updating. Then after the update change back to the child theme. You may have to copy all your files back over. Hope that makes sense.

    NirodhaSoftware
    Member

    @nirodhasoftware

    @sbeat, What do you mean by “copy the child to the parent theme”?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] child theme not importing multiple .css files’ is closed to new replies.