WHAT TO DO WHEN YOUR MAGENTO 2 THEME DOES NOT SHOW UP IN FRONT END?
Reson One:
Theme record may not have been inserted in the Theme table.
Check the theme table to ensure if the new theme has been inserted.
If not,then insert the new theme in the Theme table using following SQL command.
INSERT INTO `theme` (`theme_id`, `parent_id`, `theme_path`, `theme_title`, `preview_image`, `is_featured`, `area`, `type`, `code`) VALUES(1, NULL, 'Magento/blank', 'Magento Blank', 'preview_image_57bd8ff1e41f4.jpeg', 0, 'frontend', 0, 'Magento/blank'),(2, 1, 'Magento/luma', 'Magento Luma', 'preview_image_57bd8ff21a0b0.jpeg', 0, 'frontend', 0, 'Magento/luma'),(3, NULL, 'Magento/backend', 'Magento 2 backend', NULL, 0, 'adminhtml', 0, 'Magento/backend'),(5, 1, 'themename/title', 'themename - title', 'preview_image_57bea4ad73a91.jpeg', 0,'frontend', 0, 'themename/title');
Reason Two:
If the theme record is already available in the Theme table, then there are chances that the ‘Theme Type’ would not have been set to 0, which is Physical.
There are 3 theme types – 0–Physical, 1-Virtual and 2–Staging.
Ensure that the ‘Theme Type’ is Physical (i.e.) 0.
Once you have made the above changes, you need to run the below commands in our SSH terminal.
php bin/magento setup:upgrade –keep-generatedphp bin/magento setup:static-content:deployphp bin/magento cache:cleanphp bin/magento cache:flush
From: dckap
- 1 Magento ver. 2.2.0-dev - A technical prob... 16581
- 2 ECS git pull 代码很慢的问题 14715
- 3 玩客云监工客户端 13207
- 4 Magento 2 UI Form Validation 13124
- 5 Codeigniter SSL 强制重定向至https访问 13008
- 6 magento2 完整卸载模块的正确姿势 12642
- 7 Magento fix 500 12283
- 8 Magento index is locked by another reinde... 10741
- 9 Ubuntu删除日志文件 9014
- 10 Magento 2安装ElasticSearch 6.x搜索引擎-Ub... 8624

