I have created 2 custom themes for the site, and applied one of theme as the theme store. But my webpage/store is loading the layout of the theme which is not been applied. I have been struggling with this since 2 days, still no luck.

I have tried to modify the theme table from the db as well where I made all the types to 0. cleared caches n number if times, removed pub/static/frontend folder, Even if I delete the theme it is not loading the layout of the applied theme.

Anything which I have not tried yet?

My theme structure is below:

Theme 1:


Theme 2:




magento version: 2.4.1

2 Answers 2


Try to provide your layout theme configuration for the two themes you create and more informations about your the structure and files content.

  • I updated my question. Jan 16, 2021 at 15:59

Apply theme to store view from Admin > Content > Design > Theme

Then run below command

rm -rf var/view_preprocessed/ var/cache/ var/page_cache

Run setup upgrade command

php bin/magento s:up

deploy static content

php bin/magento s:s:d -f

Flush cache

php bin/magento c:f
  • already tried this, but no luck Jan 16, 2021 at 17:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.