Created
February 14, 2021 12:04
-
-
Save vasilii-b/3e51f0fe5c3ca395ff73b4ceea8f5cde to your computer and use it in GitHub Desktop.
Magento 2 - Enable theme from codebase.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Project's config.php file | |
return [ | |
'system'=> [ | |
'default' =>[ | |
'design' => [ | |
'theme' => [ | |
'theme_id' => 'frontend/vendor/theme-name', // theme name, as declared in registration.php | |
] | |
] | |
] | |
], | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// theme's registration.php file | |
use Magento\Framework\Component\ComponentRegistrar; | |
ComponentRegistrar::register(ComponentRegistrar::THEME, 'frontend/vendor/theme-name', __DIR__); |
Author
vasilii-b
commented
Mar 19, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment