WordPress.org

Ready to get started?Download WordPress

Forums

Hero
[resolved] child theme not importing multiple .css files (5 posts)

  1. sbeat
    Member
    Posted 1 year ago #

    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.

  2. sbeat
    Member
    Posted 1 year ago #

    I just needed to copy the child to the parent theme and everything worked

  3. nosfer4tu
    Member
    Posted 10 months ago #

    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?

  4. sbeat
    Member
    Posted 9 months ago #

    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.

  5. NirodhaSoftware
    Member
    Posted 1 month ago #

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

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic