{"id":16752,"date":"2018-09-25T13:50:32","date_gmt":"2018-09-25T11:50:32","guid":{"rendered":"https:\/\/belvg.com\/blog\/?p=16752"},"modified":"2021-02-18T15:18:56","modified_gmt":"2021-02-18T13:18:56","slug":"themes-in-magento-2-creation-inheritance-and-hierarchy","status":"publish","type":"post","link":"https:\/\/belvg.com\/blog\/themes-in-magento-2-creation-inheritance-and-hierarchy.html","title":{"rendered":"Themes in Magento 2: Creation, Inheritance and Hierarchy"},"content":{"rendered":"<p>There is a hereditary relationship between the themes (inheritance fallback mechanism) in Magento 2. This connection gives the advantage of easy editing and maintaining the themes during <a href=\"https:\/\/belvg.com\/magento-development\" target=\"_blank\" rel=\"noopener\">Magento 2 development<\/a>. For example, you can create a theme with certain decorations, based on the basic design. Instead of copying the extensive theme files and changing what you want to change, you can add overriding and extending files.<\/p>\n<p><!--more-->The essence of the inheritance fallback mechanism is that if the view files are not found in the current theme, the system looks for these files in parent themes, modules or libraries.<\/p>\n<h2><strong><span style=\"color: #000000;\">Parent &amp; Child theme<\/span><\/strong><\/h2>\n<p>Parent theme is a common theme, e.g. <strong>Magento_blank<\/strong> theme, which comes with Magento 2 and does not have its parent theme. Or it&#8217;s a theme from which all the files for the child theme will be inherited.<\/p>\n<p>A child theme is a theme whose files are inherited from a Parent theme. A Parent theme is specified in the child <strong>theme.xml<\/strong> file:<\/p>\n<p><em>\/app\/design\/frontend\/(vendor)\/(theme_name)\/theme.xml<\/em><\/p>\n<p>(&lt;parent&gt;Magento\/Blank&lt;\/parent&gt;).<\/p>\n<pre class=\"lang:xhtml decode:true\">&lt;?xml version=\"1.0\"?&gt;\r\n&lt;theme xmlns:xsi=\"http:\/\/www.w3.org\/2001\/XMLSchema-instance\" xsi:noNamespaceSchemaLocation=\"urn:magento:framework:Config\/etc\/theme.xsd\"&gt;\r\n&#160;&#160;&lt;title&gt;My Theme&lt;\/title&gt;\r\n&#160;&#160;&lt;parent&gt;Magento\/blank&lt;\/parent&gt;\r\n&#160;&#160;&lt;media&gt;\r\n&#160;&#160;&#160;&#160;&#160;&#160;&lt;preview_image&gt;media\/preview.jpg&lt;\/preview_image&gt;\r\n&#160;&#160;&lt;\/media&gt;\r\n&lt;\/theme&gt;<\/pre>\n<p>Unlike Magento 1, the number levels of inheritance in Magento 2 is not restricted. Let&#8217;s take a look at several examples of how to extend or override child theme files.<\/p>\n<h2><strong><span style=\"color: #000000;\">Layout files<\/span><\/strong><\/h2>\n<p>The processing mechanism for layout files in the fallback system is not involved. The system collects layout in the following order:<\/p>\n<ol>\n<li>Current theme layouts: <em>&lt;theme_dir&gt;\/&lt;Vendor&gt;_&lt;Module&gt;\/layout\/<\/em><\/li>\n<li>Ancestor themes layouts, starting from the most distant ancestor, recursively until a theme with no parent is reached: <em>&lt;parent_theme_dir&gt;\/&lt;Vendor&gt;_&lt;Module&gt;\/layout\/<\/em><\/li>\n<li>Module layouts for the frontend area: <em>&lt;module_dir&gt;\/view\/frontend\/layout\/<\/em><\/li>\n<li>Module layouts for the base area: <em>&lt;module_dir&gt;\/view\/base\/layout\/<\/em><\/li>\n<\/ol>\n<p>Unlike templates files, layout files can be easily supplemented. All you need is to create a new .xml file in the child theme in the layout folder of the required module.<\/p>\n<p>For example, if you want to move the page title to the content block on the product catalog page, you need to create the <strong>catalog_product_view.xml<\/strong> file at <strong>\\app\\design\\frontend\\vendor_name\\theme_name\\Magento_Catalog\\layout\\catalog_category_view.xml<\/strong> and add the following content:<\/p>\n<pre class=\"lang:xhtml decode:true\">&lt;?xml version=\"1.0\"?&gt;\r\n&lt;page xmlns:xsi=\"http:\/\/www.w3.org\/2001\/XMLSchema-instance\" layout=\"2columns-left\" xsi:noNamespaceSchemaLocation=\"urn:magento:framework:View\/Layout\/etc\/page_configuration.xsd\"&gt;\r\n&#160;&#160;&lt;body&gt;\r\n&#160;&#160;&#160;&#160;&#160;&#160;&lt;move element=\"page.main.title\" as=\"page.main.title\" destination=\"content\" before=\"-\"\/&gt;\r\n&#160;&#160;&lt;\/body&gt;\r\n&lt;\/page&gt;<\/pre>\n<p>This will extend the layout, without overriding any other rules.<\/p>\n<p>But if you still need to override the .xml file, you need to create a file with the same name as the overridden file at:<\/p>\n<p><em>theme_dir\/vendor_module\/layout\/override\/theme\/vendor_name\/&lt;ancestor_theme&gt;<\/em><\/p>\n<h2><strong><span style=\"color: #000000;\">Template Files<\/span><\/strong><\/h2>\n<p>The fallback scheme for templates is the following:<\/p>\n<ol>\n<li>Current theme templates: <em>&lt;theme_dir&gt;\/&lt;Namespace&gt;_&lt;Module&gt;\/templates<\/em><\/li>\n<li>Ancestors themes templates, recursively, until a theme with no ancestor is reached: <em>&lt;parent_theme_dir&gt;\/&lt;Namespace&gt;_&lt;Module&gt;\/templates<\/em><\/li>\n<li>Module templates: <em>&lt;module_dir&gt;\/view\/frontend\/templates<\/em><\/li>\n<\/ol>\n<p>If you need to override a template file, for example, a product directory file, you need to copy the file:<\/p>\n<p><em>Magento_Catalog_module_dir\\view\\frontend\\templates\\product\\list.phtml<\/em><\/p>\n<p>along the way:<\/p>\n<p><em>app\\design\\frontend\\vendor_name\\theme_name\\Magento_Catalog\\templates\\product\\list.phtml<\/em><\/p>\n<p>and make the necessary changes to it. The same applies to static files (js, css, images, fonts and .less).<\/p>\n<p>The specific directories, in which the system searches during the backup,&#160;depend on whether the module context for the file is known.<\/p>\n<p>If the module context is not defined for the file:<\/p>\n<ol>\n<li>Current theme static files for a specific locale (the locale set for the storefront): <em>theme_dir\/web\/i18n\/&lt;locale&gt;<\/em><\/li>\n<li>Current theme static files: <em>theme_dir\/web\/<\/em><\/li>\n<li>Ancestor&#8217;s static files, recursively, until a theme with no parent is reached:\n<ul>\n<li><em>parent_theme_dir\/web\/i18n\/&lt;locale&gt;<\/em><\/li>\n<li><em>parent_theme_dir\/web\/<\/em><\/li>\n<\/ul>\n<\/li>\n<li>Library static view files: <em>lib\/web\/<\/em><\/li>\n<\/ol>\n<p>If the module context is defined:<\/p>\n<ol>\n<li>Current theme and current locale module static files: <em>theme_dir\/Namespace_Module\/web\/i18n\/&lt;locale&gt;\/<\/em><\/li>\n<li>Current theme module static files <em>theme_dir\/Namespace_Module\/web\/<\/em>. Example: <em>app\/design\/frontend\/BelVg\/BelvgTheme\/Magento_Catalog\/web\/<\/em><\/li>\n<li>Ancestor themes module static files, recursively, until a theme with no ancestor is reached:\n<ul>\n<li><em>parent_theme_dir\/Namespace_Module\/web\/i18n\/&lt;locale&gt;\/<\/em><\/li>\n<li><em>parent_theme_dir\/Namespace_Module\/web\/<\/em><\/li>\n<\/ul>\n<\/li>\n<li>Module static view files for the current locale and frontend area: <em>module_dir\/view\/frontend\/web\/i18n\/&lt;locale&gt;\/<\/em><\/li>\n<li>Module static view files for the current locale and base area: <em>module_dir\/view\/base\/web\/i18n\/&lt;locale&gt;\/<\/em><\/li>\n<li>Module static view files for the frontend area: <em>module_dir\/view\/frontend\/web\/<\/em><\/li>\n<li>Module static view files for the base area:<em> module_dir\/view\/base\/web\/<\/em><\/li>\n<\/ol>\n<p>That&#8217;s it, thanks for reading. Hope the article has provided&#160;a deeper insight&#160;into the theme structure of Magento 2.<\/p>\n","protected":false},"excerpt":{"rendered":"Creating, editing and overriding themes in Magento 2.","protected":false},"author":82,"featured_media":16753,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"image","meta":{"_acf_changed":false,"footnotes":""},"categories":[474,491,389,526],"tags":[],"class_list":["post-16752","post","type-post","status-publish","format-image","has-post-thumbnail","hentry","category-ecommerce","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=\"Theme structure in Magento 2. A hereditary relationship between themes (inheritance fallback) in Magento 2. Creating, editing and maintaining themes in Magento 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\/themes-in-magento-2-creation-inheritance-and-hierarchy.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\\\/themes-in-magento-2-creation-inheritance-and-hierarchy.html#article\",\"name\":\"Creating and editing themes in Magento 2 | BelVG Blog\",\"headline\":\"Themes in Magento 2: Creation, Inheritance and Hierarchy\",\"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\\\/09\\\/Themes-in-Magento-2-Creation-Inheritance-and-Hierarchy.jpg\",\"width\":1110,\"height\":590,\"caption\":\"Themes in Magento 2: Creation, Inheritance and Hierarchy\"},\"datePublished\":\"2018-09-25T13:50:32+02:00\",\"dateModified\":\"2021-02-18T15:18:56+02:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/themes-in-magento-2-creation-inheritance-and-hierarchy.html#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/themes-in-magento-2-creation-inheritance-and-hierarchy.html#webpage\"},\"articleSection\":\"ECOMMERCE, Magento 2, Magento 2 Development, Magento Theme, Image\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/themes-in-magento-2-creation-inheritance-and-hierarchy.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\\\/themes-in-magento-2-creation-inheritance-and-hierarchy.html#listItem\",\"name\":\"Themes in Magento 2: Creation, Inheritance and Hierarchy\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/themes-in-magento-2-creation-inheritance-and-hierarchy.html#listItem\",\"position\":3,\"name\":\"Themes in Magento 2: Creation, Inheritance and Hierarchy\",\"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\\\/themes-in-magento-2-creation-inheritance-and-hierarchy.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\\\/themes-in-magento-2-creation-inheritance-and-hierarchy.html#webpage\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/themes-in-magento-2-creation-inheritance-and-hierarchy.html\",\"name\":\"Creating and editing themes in Magento 2 | BelVG Blog\",\"description\":\"Theme structure in Magento 2. A hereditary relationship between themes (inheritance fallback) in Magento 2. Creating, editing and maintaining themes in Magento 2\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/themes-in-magento-2-creation-inheritance-and-hierarchy.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\\\/09\\\/Themes-in-Magento-2-Creation-Inheritance-and-Hierarchy.jpg\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/themes-in-magento-2-creation-inheritance-and-hierarchy.html\\\/#mainImage\",\"width\":1110,\"height\":590,\"caption\":\"Themes in Magento 2: Creation, Inheritance and Hierarchy\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/themes-in-magento-2-creation-inheritance-and-hierarchy.html#mainImage\"},\"datePublished\":\"2018-09-25T13:50:32+02:00\",\"dateModified\":\"2021-02-18T15:18:56+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":"Creating and editing themes in Magento 2 | BelVG Blog","description":"Theme structure in Magento 2. A hereditary relationship between themes (inheritance fallback) in Magento 2. Creating, editing and maintaining themes in Magento 2","canonical_url":"https:\/\/belvg.com\/blog\/themes-in-magento-2-creation-inheritance-and-hierarchy.html","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/belvg.com\/blog\/themes-in-magento-2-creation-inheritance-and-hierarchy.html#article","name":"Creating and editing themes in Magento 2 | BelVG Blog","headline":"Themes in Magento 2: Creation, Inheritance and Hierarchy","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\/09\/Themes-in-Magento-2-Creation-Inheritance-and-Hierarchy.jpg","width":1110,"height":590,"caption":"Themes in Magento 2: Creation, Inheritance and Hierarchy"},"datePublished":"2018-09-25T13:50:32+02:00","dateModified":"2021-02-18T15:18:56+02:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/belvg.com\/blog\/themes-in-magento-2-creation-inheritance-and-hierarchy.html#webpage"},"isPartOf":{"@id":"https:\/\/belvg.com\/blog\/themes-in-magento-2-creation-inheritance-and-hierarchy.html#webpage"},"articleSection":"ECOMMERCE, Magento 2, Magento 2 Development, Magento Theme, Image"},{"@type":"BreadcrumbList","@id":"https:\/\/belvg.com\/blog\/themes-in-magento-2-creation-inheritance-and-hierarchy.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\/themes-in-magento-2-creation-inheritance-and-hierarchy.html#listItem","name":"Themes in Magento 2: Creation, Inheritance and Hierarchy"},"previousItem":{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/themes-in-magento-2-creation-inheritance-and-hierarchy.html#listItem","position":3,"name":"Themes in Magento 2: Creation, Inheritance and Hierarchy","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\/themes-in-magento-2-creation-inheritance-and-hierarchy.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\/themes-in-magento-2-creation-inheritance-and-hierarchy.html#webpage","url":"https:\/\/belvg.com\/blog\/themes-in-magento-2-creation-inheritance-and-hierarchy.html","name":"Creating and editing themes in Magento 2 | BelVG Blog","description":"Theme structure in Magento 2. A hereditary relationship between themes (inheritance fallback) in Magento 2. Creating, editing and maintaining themes in Magento 2","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/belvg.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/belvg.com\/blog\/themes-in-magento-2-creation-inheritance-and-hierarchy.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\/09\/Themes-in-Magento-2-Creation-Inheritance-and-Hierarchy.jpg","@id":"https:\/\/belvg.com\/blog\/themes-in-magento-2-creation-inheritance-and-hierarchy.html\/#mainImage","width":1110,"height":590,"caption":"Themes in Magento 2: Creation, Inheritance and Hierarchy"},"primaryImageOfPage":{"@id":"https:\/\/belvg.com\/blog\/themes-in-magento-2-creation-inheritance-and-hierarchy.html#mainImage"},"datePublished":"2018-09-25T13:50:32+02:00","dateModified":"2021-02-18T15:18:56+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":"16752","title":"Creating and editing themes in Magento 2 | #site_title","description":"Theme structure in Magento 2. A hereditary relationship between themes (inheritance fallback) in Magento 2. Creating, editing and maintaining themes in Magento 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:03","updated":"2026-11-03 18:37:03"},"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\tThemes in Magento 2: Creation, Inheritance and Hierarchy\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":"Themes in Magento 2: Creation, Inheritance and Hierarchy","link":"https:\/\/belvg.com\/blog\/themes-in-magento-2-creation-inheritance-and-hierarchy.html"}],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/posts\/16752","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=16752"}],"version-history":[{"count":-2,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/posts\/16752\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/media\/16753"}],"wp:attachment":[{"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/media?parent=16752"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/categories?post=16752"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/tags?post=16752"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}