cancel
Showing results for 
Search instead for 
Did you mean: 

Renaming theme

Renaming theme

Hi,

 

I cloned the Magento2 directory, created a new theme in app/design/frontend, which was properly listed in the frontend admin panel. Then I renamed the theme ("mv Mytheme mytheme", etc), but it wasn't reflected in the frontend admin panel, so I removed the folder, but it's still in the admin panel. I tried the command lines "magento cache:clear" and "magento cache:flush", but it's still here.

 

How should I fix this issue ?

1 REPLY

Re: Renaming theme

I fixed my issue by doing the following steps :

  1. Remove the theme folder from app/design/frontend/<Vendor>/.
  2. Clear the content of var/view_preprocessed/
  3. Clear the content of pub/static/frontend/
  4. Open the Magento’s database, go to the theme table then search and delete the theme row.
  5. Clear the cache with php bin/magento cache:flush.

As explained below :

http://blog.netgloo.com/2016/05/18/uninstall-and-reinstall-a-magento-2-custom-theme/

 

However, is there any more friendly way to fix such issue ?