Lastly, you need to configure all of the product image sizes used on your store front-end in view.xml. For example, you can choose to portray the product images in the product category grid view as square, by assigning it a size of 250 x 250 px. Let’s have a glimpse of how the image configuration would look like:<\/li>\n<\/ol>\n<var name=”category_page_grid:type”>small_image<\/var><\/p>\n
<var name=”category_page_grid:width”>250<\/var><\/p>\n
<var name=”category_page_grid:ratio”>1<\/var><\/p>\n
<var name=”category_page_grid:height”>250<\/var><\/p>\n
Step 5 \u2013 Create Directories for Your Theme’s Static Files<\/strong><\/p>\n
Just like any standard Magento theme, your theme will also contain multiple static files, including styles, JavaScript, images and other files. Make sure to store each file type in a separate \u201cweb\u201d sub-directory within your theme folder, as follows:<\/p>\n
app\/design\/<area>\/<Vendor>\/<theme>\/<\/p>\n
>>\u00a0web\/<\/p>\n
>>\u00a0css\/<\/p>\n
>>\u00a0source\/<\/p>\n
>>\u00a0fonts\/<\/p>\n
>>\u00a0images\/<\/p>\n
>>\u00a0js\/<\/p>\n
Note: All the general theme static files should be stored in the …<theme>\/web\/images, for example, the logo of your theme needs to be stored in …<theme>\/web\/images. There’s a greater possibility that your theme will include some module-specific files. These files are stored in the sub-directories like …\/<theme>\/<Namespace_Module>\/web\/css and related sub-directories. However, this is a whole new topic of discussion. So, for now we will skip this topic.<\/p>\n
Applying and Configuring Your Theme in Magento<\/strong><\/p>\n
This section will let you know how you can apply your theme to the Magento storefront. For doing so, simply follow the below listed steps:<\/p>\n
Step 1 \u2013 Open up your Magento install admin panel and navigate to CONTENT-> Design-> Themes. Make certain that you can see your theme in the given theme list.<\/p>\n
Step 2 \u2013 From your admin panel visit Stores -> Configuration -> Design.<\/p>\n
Step 3 \u2013 From the \u201cScope\u201d drop-down field, choose the store view to which you would like to apply your theme.<\/p>\n
Step 4 \u2013 Next, from the \u201cDesign\u201d Theme tab, choose the theme you’ve just created listed in the Design Theme drop-down.<\/p>\n
Step 5 \u2013 Lastly, click on the \u201cSave Config\u201d option to apply the changes you have made so far. And once it’s done, make sure to reload the pages of your storefront.<\/p>\n
Note: In case, caching is enabled in your Magento back end, it’s important to clear the cache or else you may not be able to see the changes you’ve just applied.<\/p>\n
Conclusion<\/strong><\/p>\n
Hope that reading this tutorial will serve as a basic guide that will help you understand the process of creating a custom theme in Magento 2.<\/p>\n
Author Bio :<\/strong><\/p>\n
Isabella Morris is currently employed with a renowned custom Magento development<\/a> company and is also engaged in writing informative articles on best tools and tricks for Magento development. Her write-ups have proved beneficial for a wider group of Magento developers across the globe.<\/p>\n","protected":false},"excerpt":{"rendered":"
Even though, Magento 2 is in development phase it has already made a lot of buzz in the e-commerce industry because of the new and improved front-end approaches, … Continue \u2192<\/a><\/p>\n","protected":false},"author":10,"featured_media":30099,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"inline_featured_image":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[30],"tags":[],"aioseo_notices":[],"yoast_head":"\nHow to Create a Custom Theme in Magento<\/title>\n<meta name=\"description\" content=\"How to Create a Custom Theme in Magento on WebDesignDev.com. Read about How to Create a Custom Theme in Magento.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/webdesigndev.com\/how-to-create-a-custom-theme-in-magento\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Create a Custom Theme in Magento\" \/>\n<meta property=\"og:description\" content=\"How to Create a Custom Theme in Magento on WebDesignDev.com. Read about How to Create a Custom Theme in Magento.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webdesigndev.com\/how-to-create-a-custom-theme-in-magento\/\" \/>\n<meta property=\"og:site_name\" content=\"WebDesignDev\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/WebDesignDevBlog\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/pages\/WebDesignDev\/109134615846988\" \/>\n<meta property=\"article:published_time\" content=\"2015-04-06T15:08:13+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/webdesigndev.com\/wp-content\/uploads\/2015\/04\/featured-image.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"900\" \/>\n\t<meta property=\"og:image:height\" content=\"395\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"John Culotta\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/WebDesignDev\" \/>\n<meta name=\"twitter:site\" content=\"@WebDesignDev\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"John Culotta\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/webdesigndev.com\/how-to-create-a-custom-theme-in-magento\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webdesigndev.com\/how-to-create-a-custom-theme-in-magento\/\"},\"author\":{\"name\":\"John Culotta\",\"@id\":\"https:\/\/webdesigndev.com\/#\/schema\/person\/bee34f6e4b3d0dcefa3bfef862b30b24\"},\"headline\":\"How to Create a Custom Theme in Magento\",\"datePublished\":\"2015-04-06T15:08:13+00:00\",\"dateModified\":\"2015-04-06T15:08:13+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webdesigndev.com\/how-to-create-a-custom-theme-in-magento\/\"},\"wordCount\":1392,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/webdesigndev.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/webdesigndev.com\/how-to-create-a-custom-theme-in-magento\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webdesigndev.com\/wp-content\/uploads\/2015\/04\/featured-image.jpg\",\"articleSection\":[\"Web Development\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webdesigndev.com\/how-to-create-a-custom-theme-in-magento\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webdesigndev.com\/how-to-create-a-custom-theme-in-magento\/\",\"url\":\"https:\/\/webdesigndev.com\/how-to-create-a-custom-theme-in-magento\/\",\"name\":\"How to Create a Custom Theme in Magento\",\"isPartOf\":{\"@id\":\"https:\/\/webdesigndev.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/webdesigndev.com\/how-to-create-a-custom-theme-in-magento\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/webdesigndev.com\/how-to-create-a-custom-theme-in-magento\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webdesigndev.com\/wp-content\/uploads\/2015\/04\/featured-image.jpg\",\"datePublished\":\"2015-04-06T15:08:13+00:00\",\"dateModified\":\"2015-04-06T15:08:13+00:00\",\"description\":\"How to Create a Custom Theme in Magento on WebDesignDev.com. Read about How to Create a Custom Theme in Magento.\",\"breadcrumb\":{\"@id\":\"https:\/\/webdesigndev.com\/how-to-create-a-custom-theme-in-magento\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webdesigndev.com\/how-to-create-a-custom-theme-in-magento\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webdesigndev.com\/how-to-create-a-custom-theme-in-magento\/#primaryimage\",\"url\":\"https:\/\/webdesigndev.com\/wp-content\/uploads\/2015\/04\/featured-image.jpg\",\"contentUrl\":\"https:\/\/webdesigndev.com\/wp-content\/uploads\/2015\/04\/featured-image.jpg\",\"width\":900,\"height\":395},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webdesigndev.com\/how-to-create-a-custom-theme-in-magento\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webdesigndev.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Web Development\",\"item\":\"https:\/\/webdesigndev.com\/web-development\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"How to Create a Custom Theme in Magento\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/webdesigndev.com\/#website\",\"url\":\"https:\/\/webdesigndev.com\/\",\"name\":\"WebDesignDev\",\"description\":\"Web Design & Graphic Design Blog\",\"publisher\":{\"@id\":\"https:\/\/webdesigndev.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/webdesigndev.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/webdesigndev.com\/#organization\",\"name\":\"WebDesignDev\",\"url\":\"https:\/\/webdesigndev.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webdesigndev.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/webdesigndev.com\/wp-content\/uploads\/2023\/05\/2023-WebDesignDev-Logo.svg\",\"contentUrl\":\"https:\/\/webdesigndev.com\/wp-content\/uploads\/2023\/05\/2023-WebDesignDev-Logo.svg\",\"width\":601,\"height\":196,\"caption\":\"WebDesignDev\"},\"image\":{\"@id\":\"https:\/\/webdesigndev.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/WebDesignDevBlog\",\"https:\/\/x.com\/WebDesignDev\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/webdesigndev.com\/#\/schema\/person\/bee34f6e4b3d0dcefa3bfef862b30b24\",\"name\":\"John Culotta\",\"description\":\"John is the chief editor here at WebDesignDev. He is a creative who enjoys writing, research,\u00a0and all things design related as well as (formerly) a full-time musician. As an entrepreneur, he has many years of experience in designing websites, packaging, logos, photo editing, and the\u00a0development of his own top-selling products on Amazon and Shopify. You can see his motivational\u00a0Instagram\u00a0account or connect on\u00a0LinkedIn\u00a0and follow him on\u00a0Twitter.\",\"sameAs\":[\"https:\/\/www.facebook.com\/pages\/WebDesignDev\/109134615846988\",\"https:\/\/www.instagram.com\/ventureupwards\/\",\"https:\/\/x.com\/https:\/\/twitter.com\/WebDesignDev\"]}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Create a Custom Theme in Magento","description":"How to Create a Custom Theme in Magento on WebDesignDev.com. Read about How to Create a Custom Theme in Magento.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/webdesigndev.com\/how-to-create-a-custom-theme-in-magento\/","og_locale":"en_US","og_type":"article","og_title":"How to Create a Custom Theme in Magento","og_description":"How to Create a Custom Theme in Magento on WebDesignDev.com. Read about How to Create a Custom Theme in Magento.","og_url":"https:\/\/webdesigndev.com\/how-to-create-a-custom-theme-in-magento\/","og_site_name":"WebDesignDev","article_publisher":"https:\/\/www.facebook.com\/WebDesignDevBlog","article_author":"https:\/\/www.facebook.com\/pages\/WebDesignDev\/109134615846988","article_published_time":"2015-04-06T15:08:13+00:00","og_image":[{"width":900,"height":395,"url":"https:\/\/webdesigndev.com\/wp-content\/uploads\/2015\/04\/featured-image.jpg","type":"image\/jpeg"}],"author":"John Culotta","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/WebDesignDev","twitter_site":"@WebDesignDev","twitter_misc":{"Written by":"John Culotta","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webdesigndev.com\/how-to-create-a-custom-theme-in-magento\/#article","isPartOf":{"@id":"https:\/\/webdesigndev.com\/how-to-create-a-custom-theme-in-magento\/"},"author":{"name":"John Culotta","@id":"https:\/\/webdesigndev.com\/#\/schema\/person\/bee34f6e4b3d0dcefa3bfef862b30b24"},"headline":"How to Create a Custom Theme in Magento","datePublished":"2015-04-06T15:08:13+00:00","dateModified":"2015-04-06T15:08:13+00:00","mainEntityOfPage":{"@id":"https:\/\/webdesigndev.com\/how-to-create-a-custom-theme-in-magento\/"},"wordCount":1392,"commentCount":0,"publisher":{"@id":"https:\/\/webdesigndev.com\/#organization"},"image":{"@id":"https:\/\/webdesigndev.com\/how-to-create-a-custom-theme-in-magento\/#primaryimage"},"thumbnailUrl":"https:\/\/webdesigndev.com\/wp-content\/uploads\/2015\/04\/featured-image.jpg","articleSection":["Web Development"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webdesigndev.com\/how-to-create-a-custom-theme-in-magento\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webdesigndev.com\/how-to-create-a-custom-theme-in-magento\/","url":"https:\/\/webdesigndev.com\/how-to-create-a-custom-theme-in-magento\/","name":"How to Create a Custom Theme in Magento","isPartOf":{"@id":"https:\/\/webdesigndev.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/webdesigndev.com\/how-to-create-a-custom-theme-in-magento\/#primaryimage"},"image":{"@id":"https:\/\/webdesigndev.com\/how-to-create-a-custom-theme-in-magento\/#primaryimage"},"thumbnailUrl":"https:\/\/webdesigndev.com\/wp-content\/uploads\/2015\/04\/featured-image.jpg","datePublished":"2015-04-06T15:08:13+00:00","dateModified":"2015-04-06T15:08:13+00:00","description":"How to Create a Custom Theme in Magento on WebDesignDev.com. Read about How to Create a Custom Theme in Magento.","breadcrumb":{"@id":"https:\/\/webdesigndev.com\/how-to-create-a-custom-theme-in-magento\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webdesigndev.com\/how-to-create-a-custom-theme-in-magento\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webdesigndev.com\/how-to-create-a-custom-theme-in-magento\/#primaryimage","url":"https:\/\/webdesigndev.com\/wp-content\/uploads\/2015\/04\/featured-image.jpg","contentUrl":"https:\/\/webdesigndev.com\/wp-content\/uploads\/2015\/04\/featured-image.jpg","width":900,"height":395},{"@type":"BreadcrumbList","@id":"https:\/\/webdesigndev.com\/how-to-create-a-custom-theme-in-magento\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webdesigndev.com\/"},{"@type":"ListItem","position":2,"name":"Web Development","item":"https:\/\/webdesigndev.com\/web-development\/"},{"@type":"ListItem","position":3,"name":"How to Create a Custom Theme in Magento"}]},{"@type":"WebSite","@id":"https:\/\/webdesigndev.com\/#website","url":"https:\/\/webdesigndev.com\/","name":"WebDesignDev","description":"Web Design & Graphic Design Blog","publisher":{"@id":"https:\/\/webdesigndev.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/webdesigndev.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/webdesigndev.com\/#organization","name":"WebDesignDev","url":"https:\/\/webdesigndev.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webdesigndev.com\/#\/schema\/logo\/image\/","url":"https:\/\/webdesigndev.com\/wp-content\/uploads\/2023\/05\/2023-WebDesignDev-Logo.svg","contentUrl":"https:\/\/webdesigndev.com\/wp-content\/uploads\/2023\/05\/2023-WebDesignDev-Logo.svg","width":601,"height":196,"caption":"WebDesignDev"},"image":{"@id":"https:\/\/webdesigndev.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/WebDesignDevBlog","https:\/\/x.com\/WebDesignDev"]},{"@type":"Person","@id":"https:\/\/webdesigndev.com\/#\/schema\/person\/bee34f6e4b3d0dcefa3bfef862b30b24","name":"John Culotta","description":"John is the chief editor here at WebDesignDev. He is a creative who enjoys writing, research,\u00a0and all things design related as well as (formerly) a full-time musician. As an entrepreneur, he has many years of experience in designing websites, packaging, logos, photo editing, and the\u00a0development of his own top-selling products on Amazon and Shopify. You can see his motivational\u00a0Instagram\u00a0account or connect on\u00a0LinkedIn\u00a0and follow him on\u00a0Twitter.","sameAs":["https:\/\/www.facebook.com\/pages\/WebDesignDev\/109134615846988","https:\/\/www.instagram.com\/ventureupwards\/","https:\/\/x.com\/https:\/\/twitter.com\/WebDesignDev"]}]}},"_links":{"self":[{"href":"https:\/\/webdesigndev.com\/wp-json\/wp\/v2\/posts\/30095"}],"collection":[{"href":"https:\/\/webdesigndev.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webdesigndev.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webdesigndev.com\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/webdesigndev.com\/wp-json\/wp\/v2\/comments?post=30095"}],"version-history":[{"count":0,"href":"https:\/\/webdesigndev.com\/wp-json\/wp\/v2\/posts\/30095\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webdesigndev.com\/wp-json\/wp\/v2\/media\/30099"}],"wp:attachment":[{"href":"https:\/\/webdesigndev.com\/wp-json\/wp\/v2\/media?parent=30095"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webdesigndev.com\/wp-json\/wp\/v2\/categories?post=30095"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webdesigndev.com\/wp-json\/wp\/v2\/tags?post=30095"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}