Child theme – relative paths don’t work correctly
-
I successfully made a child theme using the “Create a block theme” plugin in order to import a new font. I did it by uploading it to the child theme’s assets/fonts folder and referencing it in the child theme’s theme.json file, but it did not work at first. The font DID appear in the list of fonts when using the Site Editor, but a different default font is used in the frontend and backend. However, if I add the font to the PARENT theme’s assets/fonts folder and change nothing else, it immediately starts working. Therefore it seems that the font is being used from the PARENT theme’s folders. Why? The src for the font in child theme’s theme.json is “file:./assets/fonts/sulu-script_normal_400.woff2”.
Thanks for your help!
- The topic ‘Child theme – relative paths don’t work correctly’ is closed to new replies.