I have created a custom theme,
Thomson/
└── book
├── composer.json
├── media
│ └── image.png
├── registration.php
└── theme.xml
After that I choose my custom theme via admin, my frontend not load correctly.
I tried, static-content deploy
, clear cache
, and remove <m2>/var/* files
css are calling but theme.js
and responsive.js
is goes to 404.
Reference:
Error:
Frontend:
Suggest me, How to fix this..
Best Answer
There are two solutions
Solution 1 -
You need to define parent in your theme.xml file, so the that responsive.js and theme.js file will access from the parent theme
theme.xml ( app/design/frontend/Thomson/Book/theme.xml )
Solution 2 -
You need to add both the files responsive.js and theme.js in your custom theme.