Site icon Cody Paste

How to Create a Magento 2 Theme?

Copy of luma theme

 

The following steps describe how to create New Magento 2 theme from the existing Magento Luma theme and its implementation.

<theme xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:noNamespaceSchemaLocation="urn:magento:framework:Config/etc/theme.xsd">
   <title>Dckap New</title>
   <parent>Magento/blank</parent>
   <media>
       <preview_image>media/preview.jpg</preview_image>
   </media>
</theme>
  • Finally, clear var/cache and var/page_cache before logging into Magento 2 Admin.
  • Navigate to Stores->Configuration->Design->Design Theme.
  • Select your newly created theme “Dckap New”. Save the configuration.
  • Refresh the frontend and you will be able to view your design from newly allocated theme.
  • To make sure please view ‘Page Source’ which will display the CSS and js URL path as per your registration.php configuration file.

Source: http://www.dckap.com/blog/creating-magento-2-theme/

Exit mobile version