Adrian P. Vales Posted December 19, 2022 Share Posted December 19, 2022 This has probably been asked before, but I couldn't find an answer anywhere. We are configuring a new site for a client, and in order not to modify the main theme, we are creating a personal theme through a child theme. If I use the parent theme, I see that the assets defined in its config are loaded correctly. But if I use the child theme, despite the fact that in the configuration I tell it to use the parent's assets, I don't see that it loads them correctly. The parent images yes, but not the CSS or JS. Parent theme.yml Parent result Child theme.yml Child result Is copying the assets from the parent theme to the child the only way to include them in the child theme? Link to comment Share on other sites More sharing options...
Hart Posted January 5, 2023 Share Posted January 5, 2023 if you use child theme you will have problems on translations, i s a know bug that is not resolved yet. Using a child theme is like overriding the default one so if you not copy a css to the child theme it will use the parent css. This is working also with .tpl files, is the normal behaviour. Link to comment Share on other sites More sharing options...
Adrian P. Vales Posted January 5, 2023 Author Share Posted January 5, 2023 Hello I think you didn't read any of my post. The workflow you describe is as it should be. But as I said, when setting my child theme to use the parent assets, it doesn't load the parent's css and js files. I have to overwrite them by copying to the child theme to get them to load. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now