{"id":16403,"date":"2018-08-01T15:54:00","date_gmt":"2018-08-01T13:54:00","guid":{"rendered":"https:\/\/belvg.com\/blog\/?p=16403"},"modified":"2021-02-18T09:40:50","modified_gmt":"2021-02-18T07:40:50","slug":"utilizing-themes-and-the-template-structure-in-magento-2","status":"publish","type":"post","link":"https:\/\/belvg.com\/blog\/utilizing-themes-and-the-template-structure-in-magento-2.html","title":{"rendered":"Utilizing Themes and the Template Structure in Magento 2"},"content":{"rendered":"\n<p>We continue exploring the topics for&nbsp;Magento 2 Certified Professional Developer exam. Today we will take an in-depth look at themes and template structures in Magento 2 and learn how to customize the Magento UI using themes. Here is the list of questions covered in this article:<\/p>\n<p><!--more--><\/p>\n<p><a href=\"#step_1\">When would you create a new theme?<\/a><br>\n<a href=\"#step_2\">How do you define the&nbsp;theme hierarchy for your project?<\/a><br>\n<a href=\"#step_3\">Demonstrate the ability to customize\/debug templates using the template fallback process.<\/a><br>\n<a href=\"#step_4\">How do you identify which exact file is used in different situations?<\/a><br>\n<a href=\"#step_5\">How can you override native files?<\/a><\/p>\n<h2><a id=\"step_1\"><\/a><strong><span style=\"color: #000000;\">Creating a new theme<\/span><\/strong><\/h2>\n<p>When we want to change the appearance of our site or its functionality, the first thing we should do is to create a new theme. Check out our <a href=\"https:\/\/belvg.com\/blog\/magento-2-creating-a-new-theme.html\" target=\"_blank\" rel=\"noopener\">Magento 2: Creating a New Theme<\/a> article to see how it&rsquo;s done.<\/p>\n<h2><a id=\"step_2\"><\/a><strong><span style=\"color: #000000;\">Defining theme hierarchy for your project<\/span><\/strong><\/h2>\n<p>Here is how the theme hierarchy looks like in Magento 2:<\/p>\n<p>&#10625; Custom theme (current theme)<\/p>\n<p>&#10625; Parent theme (default theme)<\/p>\n<p>&#10625; Basic theme<\/p>\n<p>In other words, if the system does not find the required file in the current theme, it looks for it in the parent theme (the parent theme is specified in the <strong>theme.xml<\/strong> file in the root of the theme), and if it does not find it there, it looks for it in the basic theme.<\/p>\n<p>Here is an example. Let&rsquo;s say our current theme &ldquo;<em>custom_theme<\/em>&rdquo; is in the &ldquo;<em>custom_package<\/em>&rdquo; package and has a &ldquo;<em>default<\/em>&rdquo; parent theme in the same &ldquo;<em>custom_package<\/em>&rdquo; package. Then the theme hierarchy will look like this:<\/p>\n<p>&#10625; app\/design\/frontend\/custom_package\/custom_theme<\/p>\n<p>&#10625; app\/design\/frontend\/custom_package\/default<\/p>\n<p>&#10625; app\/design\/frontend\/base\/default<\/p>\n<h2><a id=\"step_3\"><\/a><strong><span style=\"color: #000000;\">Customizing\/debugging templates using the template fallback process<\/span><\/strong><\/h2>\n<p>In order to customize a specific template file for a parent or base theme, we need to copy it to our theme at the same path as it was in a parent or base theme. Remember never to delete this file from a parent or basic theme, since this will make it difficult to debug this file if it is lost or damaged. In other words, if we want to debug a template file from the current theme (for example, we may have accidentally deleted it or edited it and there was no backup version left), you can always find this file in the parent or basic theme.<\/p>\n<p>In general, these are the methods for debugging templates:<\/p>\n<p>&#10625; XDebug (The main feature of this method is the installation of breakpoints and the ability to view and change variables at any time);<\/p>\n<p>&#10625; Developer mode (This mode is used in Magento 2, which allows you to display errors directly on the screen);<\/p>\n<p>&#10625; Logs (The method uses log files in which the system enters information about what exactly goes wrong when the program&rsquo;s algorithm fails);<\/p>\n<p>&#10625; Display Magento errors (displays error messages that the system records automatically, but does not show by default);<\/p>\n<p>&#10625; Template path hints (displays templates&rsquo; names and paths).<\/p>\n<p>More information on debugging methods: <a href=\"https:\/\/belvg.com\/blog\/developer-mode-and-debugging-in-magento-2.html\" target=\"_blank\" rel=\"noopener\">Developer Mode and Debugging in Magento 2<\/a>.<\/p>\n<h2><a id=\"step_4\"><\/a><strong><span style=\"color: #000000;\">Identifying which theme file is used in different situations<\/span><\/strong><\/h2>\n<p>In order to determine which template file is used in a certain place on the site, it is convenient to turn on the path hints for this file.<\/p>\n<p>To do this, open the admin panel and go to &ldquo;Stores &#10140; Configuration&rdquo;<\/p>\n<p><a href=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2018\/08\/1.png\"><img decoding=\"async\" loading=\"lazy\" class=\"lazy aligncenter wp-image-16404 size-full\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2018\/08\/1.png\" alt=\"Stores &#10140; Configuration on the admin panel in Magento 2\" width=\"1605\" height=\"773\" title=\"Utilizing Themes and the Template Structure in Magento 2\"><\/a><\/p>\n<p>Next, go to the &ldquo;<strong>Advanced &#10140; Developer<\/strong>&rdquo; section. Here, on the &ldquo;<strong>Debug&rdquo;<\/strong> tab select &ldquo;<strong>Yes&rdquo;&nbsp;<\/strong>for the &ldquo;<strong>Enabled Template Path Hints for Storefront&rdquo;<\/strong> attribute.<\/p>\n<p><a href=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2018\/08\/2.png\"><img decoding=\"async\" loading=\"lazy\" class=\"lazy aligncenter wp-image-16405 size-full\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2018\/08\/2.png\" alt=\"Advanced &#10140; Developer section on the admin panel in Magento 2\" width=\"1637\" height=\"795\" title=\"Utilizing Themes and the Template Structure in Magento 2\"><\/a><\/p>\n<p>If you have multiple stores, then choose the one for which you want to turn on the path hints.<\/p>\n<p>Please notice that if we turn on the path hints, it will be enabled for all site users and if the site is in production, then this is unacceptable. To enable path hints only for a particular IP-address, on the &ldquo;<strong>Developer Client Restrictions<\/strong>&rdquo; tab in the &ldquo;<strong>Allowed IPs<\/strong> (comma separated)&rdquo; field, write a specific IP-address (if it is necessary to write multiple IP-addresses, they should be separated by a comma).<\/p>\n<p><a href=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2018\/08\/3.png\"><img decoding=\"async\" loading=\"lazy\" class=\"lazy aligncenter wp-image-16406 size-full\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2018\/08\/3.png\" alt=\"Developer Client Restrictions on the admin panel in Magento 2.\" width=\"1888\" height=\"895\" title=\"Utilizing Themes and the Template Structure in Magento 2\"><\/a><\/p>\n<p>Having done this, you will see the paths to the template files (white in red rectangles) appear on the front end of the site:<\/p>\n<p><a href=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2018\/08\/4.png\"><img decoding=\"async\" loading=\"lazy\" class=\"lazy aligncenter wp-image-16407 size-full\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2018\/08\/4.png\" alt=\"Path hints on the front end of the site in Magento 2\" width=\"1478\" height=\"846\" title=\"Utilizing Themes and the Template Structure in Magento 2\"><\/a><\/p>\n<p>Following the specified path, we can easily find the required template files.<\/p>\n<h2><a id=\"step_5\"><\/a><strong><span style=\"color: #000000;\">Overriding native files<\/span><\/strong><\/h2>\n<p>Overriding native files in Magento is quite easy. To do this, you need to copy these files to your theme at the same path as they were in the parent or basic theme.<\/p>\n<p>Let&rsquo;s look at an example. Let&rsquo;s say we want to override the template gallery file <strong>gallery.phtml<\/strong>&nbsp;on the page of the product, which is located in the parent theme along the path: &ldquo;app\/design\/frontend\/<strong>parent_package\/parent_theme<\/strong>\/Magento_Catalog\/templates\/product\/view\/gallery.phtml&rdquo;<\/p>\n<p>To do this, we need to copy the file, located at: &ldquo;app\/design\/frontend\/<strong>our_package\/our_theme<\/strong>\/Magento_Catalog\/templates\/product\/view\/gallery.phtml&rdquo;.<\/p>\n<p>As a result, the system will use the <strong>gallery.phtml<\/strong>&nbsp;file from our theme, instead of the file from the parent or basic theme.<\/p>\n<p>Please note that this method overwrites the template files. However, if you copy the layout file in a similar way, it will not overwrite but will complement the file of the parent theme. More information on re-writing layout files in Magento 2: <a href=\"https:\/\/belvg.com\/blog\/override-a-layout-in-magento-2.html\" target=\"_blank\" rel=\"noopener\">Override a Layout in Magento 2<\/a>.<\/p>\n\n","protected":false},"excerpt":{"rendered":"How to use themes and template structures in Magento 2.","protected":false},"author":82,"featured_media":16413,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"image","meta":{"_acf_changed":false,"footnotes":""},"categories":[491,389,526],"tags":[],"class_list":["post-16403","post","type-post","status-publish","format-image","has-post-thumbnail","hentry","category-magento-2","category-magento2-development","category-magento-theme","post_format-post-format-image"],"acf":[],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.4 - aioseo.com -->\n\t<meta name=\"description\" content=\"The ability to utilize themes and the template structure in Magento 2. Customizing the Magento UI using themes. Overriding native files in MFagento 2.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Andrey Litvin\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/belvg.com\/blog\/utilizing-themes-and-the-template-structure-in-magento-2.html\" \/>\n\t\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.4\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/utilizing-themes-and-the-template-structure-in-magento-2.html#article\",\"name\":\"Themes and template structures in Magento 2. | BelVG Blog\",\"headline\":\"Utilizing Themes and the Template Structure in Magento 2\",\"author\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/andrey-litvin#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/08\\\/Utilizing-Themes-and-the-Template-Structure-in-Magento-2-2.jpg\",\"width\":770,\"height\":433},\"datePublished\":\"2018-08-01T15:54:00+02:00\",\"dateModified\":\"2021-02-18T09:40:50+02:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/utilizing-themes-and-the-template-structure-in-magento-2.html#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/utilizing-themes-and-the-template-structure-in-magento-2.html#webpage\"},\"articleSection\":\"Magento 2, Magento 2 Development, Magento Theme, Image\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/utilizing-themes-and-the-template-structure-in-magento-2.html#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/belvg.com\\\/blog\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/category\\\/magento2-development#listItem\",\"name\":\"Magento 2 Development\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/category\\\/magento2-development#listItem\",\"position\":2,\"name\":\"Magento 2 Development\",\"item\":\"https:\\\/\\\/belvg.com\\\/blog\\\/category\\\/magento2-development\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/utilizing-themes-and-the-template-structure-in-magento-2.html#listItem\",\"name\":\"Utilizing Themes and the Template Structure in Magento 2\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/utilizing-themes-and-the-template-structure-in-magento-2.html#listItem\",\"position\":3,\"name\":\"Utilizing Themes and the Template Structure in Magento 2\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/category\\\/magento2-development#listItem\",\"name\":\"Magento 2 Development\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#organization\",\"name\":\"BelVG Blog\",\"description\":\"Magento and Prestashop articles\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/andrey-litvin#author\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/andrey-litvin\",\"name\":\"Andrey Litvin\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/utilizing-themes-and-the-template-structure-in-magento-2.html#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/e1a6e3c80cb940fddb65016d94b015cd951b4a8a9cd7227565131f28ea95c7a0?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Andrey Litvin\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/utilizing-themes-and-the-template-structure-in-magento-2.html#webpage\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/utilizing-themes-and-the-template-structure-in-magento-2.html\",\"name\":\"Themes and template structures in Magento 2. | BelVG Blog\",\"description\":\"The ability to utilize themes and the template structure in Magento 2. Customizing the Magento UI using themes. Overriding native files in MFagento 2.\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/utilizing-themes-and-the-template-structure-in-magento-2.html#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/andrey-litvin#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/andrey-litvin#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/08\\\/Utilizing-Themes-and-the-Template-Structure-in-Magento-2-2.jpg\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/utilizing-themes-and-the-template-structure-in-magento-2.html\\\/#mainImage\",\"width\":770,\"height\":433},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/utilizing-themes-and-the-template-structure-in-magento-2.html#mainImage\"},\"datePublished\":\"2018-08-01T15:54:00+02:00\",\"dateModified\":\"2021-02-18T09:40:50+02:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/\",\"name\":\"BelVG Blog\",\"description\":\"Magento and Prestashop articles\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Themes and template structures in Magento 2. | BelVG Blog","description":"The ability to utilize themes and the template structure in Magento 2. Customizing the Magento UI using themes. Overriding native files in MFagento 2.","canonical_url":"https:\/\/belvg.com\/blog\/utilizing-themes-and-the-template-structure-in-magento-2.html","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/belvg.com\/blog\/utilizing-themes-and-the-template-structure-in-magento-2.html#article","name":"Themes and template structures in Magento 2. | BelVG Blog","headline":"Utilizing Themes and the Template Structure in Magento 2","author":{"@id":"https:\/\/belvg.com\/blog\/author\/andrey-litvin#author"},"publisher":{"@id":"https:\/\/belvg.com\/blog\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2018\/08\/Utilizing-Themes-and-the-Template-Structure-in-Magento-2-2.jpg","width":770,"height":433},"datePublished":"2018-08-01T15:54:00+02:00","dateModified":"2021-02-18T09:40:50+02:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/belvg.com\/blog\/utilizing-themes-and-the-template-structure-in-magento-2.html#webpage"},"isPartOf":{"@id":"https:\/\/belvg.com\/blog\/utilizing-themes-and-the-template-structure-in-magento-2.html#webpage"},"articleSection":"Magento 2, Magento 2 Development, Magento Theme, Image"},{"@type":"BreadcrumbList","@id":"https:\/\/belvg.com\/blog\/utilizing-themes-and-the-template-structure-in-magento-2.html#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/#listItem","position":1,"name":"Home","item":"https:\/\/belvg.com\/blog\/","nextItem":{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/category\/magento2-development#listItem","name":"Magento 2 Development"}},{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/category\/magento2-development#listItem","position":2,"name":"Magento 2 Development","item":"https:\/\/belvg.com\/blog\/category\/magento2-development","nextItem":{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/utilizing-themes-and-the-template-structure-in-magento-2.html#listItem","name":"Utilizing Themes and the Template Structure in Magento 2"},"previousItem":{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/utilizing-themes-and-the-template-structure-in-magento-2.html#listItem","position":3,"name":"Utilizing Themes and the Template Structure in Magento 2","previousItem":{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/category\/magento2-development#listItem","name":"Magento 2 Development"}}]},{"@type":"Organization","@id":"https:\/\/belvg.com\/blog\/#organization","name":"BelVG Blog","description":"Magento and Prestashop articles","url":"https:\/\/belvg.com\/blog\/"},{"@type":"Person","@id":"https:\/\/belvg.com\/blog\/author\/andrey-litvin#author","url":"https:\/\/belvg.com\/blog\/author\/andrey-litvin","name":"Andrey Litvin","image":{"@type":"ImageObject","@id":"https:\/\/belvg.com\/blog\/utilizing-themes-and-the-template-structure-in-magento-2.html#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/e1a6e3c80cb940fddb65016d94b015cd951b4a8a9cd7227565131f28ea95c7a0?s=96&d=mm&r=g","width":96,"height":96,"caption":"Andrey Litvin"}},{"@type":"WebPage","@id":"https:\/\/belvg.com\/blog\/utilizing-themes-and-the-template-structure-in-magento-2.html#webpage","url":"https:\/\/belvg.com\/blog\/utilizing-themes-and-the-template-structure-in-magento-2.html","name":"Themes and template structures in Magento 2. | BelVG Blog","description":"The ability to utilize themes and the template structure in Magento 2. Customizing the Magento UI using themes. Overriding native files in MFagento 2.","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/belvg.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/belvg.com\/blog\/utilizing-themes-and-the-template-structure-in-magento-2.html#breadcrumblist"},"author":{"@id":"https:\/\/belvg.com\/blog\/author\/andrey-litvin#author"},"creator":{"@id":"https:\/\/belvg.com\/blog\/author\/andrey-litvin#author"},"image":{"@type":"ImageObject","url":"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2018\/08\/Utilizing-Themes-and-the-Template-Structure-in-Magento-2-2.jpg","@id":"https:\/\/belvg.com\/blog\/utilizing-themes-and-the-template-structure-in-magento-2.html\/#mainImage","width":770,"height":433},"primaryImageOfPage":{"@id":"https:\/\/belvg.com\/blog\/utilizing-themes-and-the-template-structure-in-magento-2.html#mainImage"},"datePublished":"2018-08-01T15:54:00+02:00","dateModified":"2021-02-18T09:40:50+02:00"},{"@type":"WebSite","@id":"https:\/\/belvg.com\/blog\/#website","url":"https:\/\/belvg.com\/blog\/","name":"BelVG Blog","description":"Magento and Prestashop articles","inLanguage":"en-US","publisher":{"@id":"https:\/\/belvg.com\/blog\/#organization"}}]}},"aioseo_meta_data":{"post_id":"16403","title":"Themes and template structures in Magento 2. | #site_title","description":"The ability to utilize themes and the template structure in Magento 2. Customizing the Magento UI using themes. Overriding native files in MFagento 2.","keywords":null,"keyphrases":null,"focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_custom_url":null,"og_image_custom_fields":null,"og_image_url":null,"og_image_width":null,"og_image_height":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_image_url":null,"twitter_title":null,"twitter_description":null,"schema_type":"default","schema_type_options":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null,"created":"2026-11-03 18:37:06","updated":"2026-11-03 18:37:06"},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/belvg.com\/blog\/\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/belvg.com\/blog\/category\/magento2-development\" title=\"Magento 2 Development\">Magento 2 Development<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tUtilizing Themes and the Template Structure in Magento 2\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/belvg.com\/blog\/"},{"label":"Magento 2 Development","link":"https:\/\/belvg.com\/blog\/category\/magento2-development"},{"label":"Utilizing Themes and the Template Structure in Magento 2","link":"https:\/\/belvg.com\/blog\/utilizing-themes-and-the-template-structure-in-magento-2.html"}],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/posts\/16403","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/users\/82"}],"replies":[{"embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/comments?post=16403"}],"version-history":[{"count":-3,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/posts\/16403\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/media\/16413"}],"wp:attachment":[{"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/media?parent=16403"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/categories?post=16403"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/tags?post=16403"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}