Jump to content

Child theme don't load parents assets


Recommended Posts

 

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

image.png.d983d36341665380cb5de49ac4c7c8ad.png

Parent result

1292245092_Capturadepantallaen2022-12-1912-03-39.thumb.png.989316cc4ed4d9f49f838edd76116fbb.png

Child theme.yml

355809092_Capturadepantallaen2022-12-1912-08-25.png.08804523302fddefca0ac9ed03247e9c.png

Child result

1135119351_Capturadepantallaen2022-12-1912-05-37.thumb.png.42914fc04637bef9f71740b82b59d838.png

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

  • 3 weeks later...

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...