magento2: [Magento 2.0.2] Custom theme not showing in admin
Hello, I was working previously on Magento 2.0.0 and I successfully installed a custom theme by following the Magento doc. Because of the upgrade bugs I had to do a fresh install of magento 2.0.2. But now I can’t install my custom theme. I just copied all the files I had on app/design/frontend/Linescort/beret-theme but the theme is not showing on the admin panel. My structure is like so :
app/design/frontend/Linescort/beret-theme
-------- etc
------------- view.xml
-------- i18n
-------- media
-------- web
-------- registration.php
-------- theme.xml
theme.xml
<theme xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Config/etc/theme.xsd">
<title>Thème Béret Français</title> <!-- your theme's name -->
<parent>Magento/blank</parent> <!-- the parent theme, in case your theme inherits from an existing theme -->
</theme>
registraton.php
<?php
/**
* Copyright © 2015 Magento. All rights reserved.
* See COPYING.txt for license details.
*/
\Magento\Framework\Component\ComponentRegistrar::register(
\Magento\Framework\Component\ComponentRegistrar::THEME,
'frontend/Linescort/beret-theme',
__DIR__
);
?>
I don’t have a composer.json, I didn’t need one with Magento 2.0.0 and even with one, it doesn’t work anyway. Permissions on the folder /Linescort are 755 I empied the cache, re-deploy but nothing worked.
Is this a bug or did i forget something?
Thank you for your help Regards
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 15 (6 by maintainers)
Have you try
bin/magento setup:upgrade?I managed to find a workaround. I upgraded my previous 2.0.0 install with the vendor folder of a 2.0.2 install, did a setup:upgrade and composer update and it worked. It’s a shame that magento doc is vague about this way to upgrade, " replace magento code base" is not a proper way to explain how to proceed for new users. They should be more specific.