<theme xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Config/etc/theme.xsd"> <title>Mytheme</title> <parent>Magento/blank</parent> <media> <preview_image>media/preview.jpg</preview_image> </media> </theme>
<?php \Magento\Framework\Component\ComponentRegistrar::register( \Magento\Framework\Component\ComponentRegistrar::THEME, 'frontend/Magenticians/Mytheme', __DIR__ );
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd"> <body> <referenceBlock name="logo"> <arguments> <argument name="logo_file" xsi:type="string">images/mytheme-logo.png</argument> <argument name="logo_img_width" xsi:type="number">200</argument> <argument name="logo_img_height" xsi:type="number">200</argument> </arguments> </referenceBlock> </body> </page>
rm -rf var/di/* var/generation/* var/cache/* var/log/* var/page_cache/* var/session/* var/view_preprocessed/* pub/static/*
php bin/magento setup:upgrade
php bin/magento setup:db-schema:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy
php bin/magento indexer:reindex
php bin/magento cache:clean
php bin/magento cache:flushAnd you’re all done! Open the homepage of your store and you’ll see that your custom theme has been applied successfully.
Your greatest possible competitive advantage can be your clients and the interactions they have with… Read More
Digital marketing KPIs are measurable values that marketing teams use to track progress toward desired… Read More
In today's digital age, fraud poses a significant threat to businesses of all sizes. As… Read More
Financial crimes continue to evolve and proliferate in our increasingly digital, global economy. From complex… Read More
In the highly competitive modern workplace, trust, and employee loyalty are crucial factors for long-term… Read More
In the ever-evolving world of small business developing and implementing effective marketing strategies is critical to… Read More
View Comments
Hi Syed Muneeb Ul Hasan,
I have created a new theme. but my theme console showing the "
TypeError: require.config is not a function" after activate the new custom theme .
Please advice me how can i solve it , I have tried removed static content , cache clear etc.
Thanks,
The file which is giving you the error in console, you have to include it manually in your custom theme.
i have included the file manually, but i got autoload error.
We can't read some files that are required to run the Magento application. This usually means file permissions are set incorrectly.
For what Magento Version exactly is this tutorial? I follow the steps exactly how you described but looks like the theme isn't showing up in the dashboard configuration of Magento 2.2.1. Am I missing something?
Did you have run all the CLI commands?
I have followed the steps, my logo and css is not including in my theme. Content are appearing as of default theme but without logo and css.
Did you have run all CLI commands?
It works.
One more query, I have created a custom page as Homepage.phtml... I want it to be my index page... so could you please tell me where to keep that file (dir).
It works.
One more query, I have created a custom page as Homepage.phtml... I want it to be my index page... so could you please tell me where to keep that file (dir).
Please have a look at this: https://magento.stackexchange.com/questions/110768/magento-2-custom-frontpage-phtml
thanks for providing article for custom magento 2 theme. i read properly and it was a great things with detail steps.