{"id":12287,"date":"2017-01-24T17:24:43","date_gmt":"2017-01-24T14:24:43","guid":{"rendered":"http:\/\/blog.belvg.com\/?p=12287"},"modified":"2023-10-18T12:44:04","modified_gmt":"2023-10-18T10:44:04","slug":"theme-yml-file-the-heart-of-prestashop-1-7","status":"publish","type":"post","link":"https:\/\/belvg.com\/blog\/theme-yml-file-the-heart-of-prestashop-1-7.html","title":{"rendered":"Theme.yml File: The Heart of Prestashop 1.7"},"content":{"rendered":"\n<p>In this article we are going to explain why the theme.yml file is so important.<\/p>\n<p>But first, please, check out some basic <a href=\"https:\/\/en.wikipedia.org\/wiki\/YAML\" target=\"_blank\" rel=\"noopener noreferrer\">info about .yml<\/a>. Newbies will find this config validation service quite useful as well: <a href=\"http:\/\/www.yamllint.com\/\" target=\"_blank\" rel=\"noopener noreferrer\">http:\/\/www.yamllint.com\/<\/a>.<br>\n<!--more-->And here is the table of all PrestaShop pages for your reference, because it is really important to know which page a Page_Identifier corresponds to. You will understand it better while reading further.<\/p>\n<table>\n<tbody>\n<tr>\n<td>Page_identifier<\/td>\n<td>url page<\/td>\n<td>description page<\/td>\n<\/tr>\n<tr>\n<td>address<\/td>\n<td>\/address<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>addresses<\/td>\n<td>\/addresses<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>authentication<\/td>\n<td>\/login<\/td>\n<td>Authorization page<\/td>\n<\/tr>\n<tr>\n<td>cart<\/td>\n<td>\/cart<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>category<\/td>\n<td>\/index.php?controller=category<\/td>\n<td>any category page<\/td>\n<\/tr>\n<tr>\n<td>cms<\/td>\n<td>\/index.php?controller=cms<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>contact<\/td>\n<td>\/contact-us<\/td>\n<td>contact page<\/td>\n<\/tr>\n<tr>\n<td>discount<\/td>\n<td>\/discount<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>guest_tracking<\/td>\n<td>\/guest-tracking<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>history<\/td>\n<td>\/order-history<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>identity<\/td>\n<td>\/identity<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>index<\/td>\n<td>\/<\/td>\n<td>homepage<\/td>\n<\/tr>\n<tr>\n<td>my_account<\/td>\n<td>&nbsp;\/my-account<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>order<\/td>\n<td>\/order<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>order_confirmation<\/td>\n<td>\/order-confirmation<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>order_detail<\/td>\n<td>\/index.php?controller=order-detail<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>order_follow<\/td>\n<td>\/order-follow<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>order_login<\/td>\n<td>\/order?login=1<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>order_return<\/td>\n<td>\/index.php?controller=order-return<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>order_slip<\/td>\n<td>\/credit-slip<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>pagenotfound<\/td>\n<td>\/page-not-found<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>password<\/td>\n<td>\/password-recovery<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>pdf_invoice<\/td>\n<td>\/index.php?controller=pdf-invoice<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>pdf_order_return<\/td>\n<td>\/index.php?controller=pdf-order-return<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>pdf_order_slip<\/td>\n<td>\/index.php?controller=pdf-order-slip<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>prices_drop<\/td>\n<td>\/prices-drop<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>product<\/td>\n<td>\/index.php?controller=product<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>register<\/td>\n<td>\/login?create_account=1<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>search<\/td>\n<td>\/search<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>sitemap<\/td>\n<td>\/sitemap<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>stores<\/td>\n<td>\/stores<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>supplier<\/td>\n<td>\/supplier<\/td>\n<td><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>The file theme.yml is located under the following directory:<\/p>\n<p><strong>\/themes\/&lt;theme_folder&gt;\/config\/theme.yml<\/strong><\/p>\n<p>This file <u>is obligatory for<\/u> any theme.<\/p>\n<p>Here is also the <a href=\"https:\/\/github.com\/PrestaShop\/PrestaShop\/blob\/develop\/src\/Core\/Addon\/Theme\/ThemeValidator.php#L80-L92\" target=\"_blank\" rel=\"noopener noreferrer\">list of options<\/a> that must be present in this file:<\/p>\n<ul>\n<li>name;<\/li>\n<li>display_name;<\/li>\n<li>version;<\/li>\n<li>name;<\/li>\n<li>compatibility.from;<\/li>\n<li>available_layouts;<\/li>\n<li>image_types.cart_default;<\/li>\n<li>image_types.small_default;<\/li>\n<li>image_types.medium_default;<\/li>\n<li>image_types.large_default;<\/li>\n<li>image_types.home_default;<\/li>\n<li>image_types.category_default;<\/li>\n<li>default_layout.<\/li>\n<\/ul>\n<p>So, let&rsquo;s start from the beginning.<\/p>\n<h3>1. Theme info<\/h3>\n<p><strong>name &ndash;<\/strong> a theme directory name (an obligatory property).<\/p>\n<p>The directory name should match the theme name. Some examples:<\/p>\n<pre class=\"lang:yaml decode:true\">name: &#1089;lassic\r\nname: my-theme    # theme name &ldquo;My Theme&rdquo;\r\nname: belvg-zerro # them name &ldquo;Belvg Zerro&rdquo;\r\n<\/pre>\n<p><strong>display_name<\/strong> &ndash; a theme name (an obligatory property).<\/p>\n<p><strong>version<\/strong>: current theme version, use <a href=\"http:\/\/semver.org\/\" target=\"_blank\" rel=\"noopener noreferrer\">Semantic Versioning<\/a> (an obligatory property).<\/p>\n<pre class=\"lang:yaml decode:true\">author:\r\n  name: \"BelVG\"                   # the name of the author or the company which created the theme (an obligatory property),\r\n  email: \"store@belvg.com\"        # support e-mail\r\n  url: \"http:\/\/module-presta.com\" # either company or author's website<\/pre>\n<h3>2. Theme settings<\/h3>\n<p>All the settings below can be changed through an interface in the theme&rsquo;s back office interface, and only depend on the theme\/shop combination.<\/p>\n<p>When the theme.yml file is parsed by PrestaShop, the &lsquo;theme_settings&rsquo; configuration key is copied to a file named settings_n.yml, where &lsquo;n&rsquo; is the id of the shop where the theme is installed (settings_123456.yml, for instance).<\/p>\n<p>When the configuration is changed through the back office interface, only the settings_n.yml file is updated &ndash; the theme.yml file remains unchanged.<\/p>\n<pre class=\"lang:yaml decode:true\">theme_settings:\r\n  default_layout: layout-full-width   #(an obligatory property ) as mentioned earlier, it is the default layout.\r\n  layouts:                            # the property describes the page where one or another layout will be used.\r\n    index: layout-home-page\r\n    category: layout-left-column\r\n    best-sales: layout-left-column\r\n    new-products: layout-left-column\r\n    prices-drop: layout-left-column\r\n    contact: layout-left-column\r\n    # syntax: &lt;page_identifier&gt;:&lt;layout&gt;&nbsp;see the examples below,\r\n    #  the table with the list of page_identifiers is available at the beginning of the article.<\/pre>\n<p>Note what is a PrestaShop layout:<\/p>\n<ul>\n<li>all layout files are located under <strong>\/&lt;theme_folder&gt;\/layouts\/&lt;layout&gt;.tpl<\/strong><\/li>\n<li>By default, any layout is defined by the property <strong>default_layout<\/strong><\/li>\n<li>A description for every <strong>&lt;layout&gt;<\/strong>can be added to the property <strong>available_layouts<\/strong> (example below)<\/li>\n<\/ul>\n<h3>3. Meta info<\/h3>\n<pre class=\"lang:yaml decode:true\">meta:\r\n  available_layouts:    # the description of all &lt;layout&gt; that can be present in the \/&lt;theme_folder&gt;\/layouts\/ folder\r\n    layout-full-width:  # a &lt;layout&gt; identifier (matches the name of the file &lt;layout&gt;.tpl)\r\n      name: &#9474;_________&#9474; Full Width\r\n      description: No side columns, ideal for distraction-free pages such as product pages.\r\n    layout-left-column:\r\n      name: &#9474;__&#9474;______&#9474; Two Columns, small left column\r\n      description: Two columns with a small left column\r\n    layout-right-column:\r\n      name: &#9474;______&#9474;__&#9474; Two Columns, small right column\r\n      description: Two columns with a small right column\r\n    layout-both-columns:\r\n      name: &#9474;__&#9474;____&#9474;__&#9474; Three Columns\r\n      description: One large central column and 2 side columns.\r\n  compatibility:     # the compatibility of your theme with specific versions of PrestaShop\r\n    from: 1.7.0.0    #(an obligatory property)&nbsp; supported from\r\n    to: ~            #(an obligatory property) &ldquo;~&rdquo; meaning 'all versions'<\/pre>\n<h3>4. Asset Management<\/h3>\n<p>PrestaShop 1.7 has quite an advanced system of <strong>Asset Management. <\/strong>Here is an example of connecting css\/js files with the help of theme.yml:<\/p>\n<pre class=\"lang:yaml decode:true\">assets:\r\n  css:\r\n    product:                       # only on a product page\r\n      - id: product-extra-style    # connecting\r\n        path: assets\/css\/product.css # the .&#1089;ss file which is located in \/themes\/&lt;theme_folder&gt;\/assets\/css\/product.css\r\n        media: all                   # installing the attribute media=&rdquo;all&rdquo;\r\n        priority: 100                # assigning the priority value 100 to the file\r\n\r\n  js:\r\n    all:                             # on any page\r\n      - id: belvg-super-lib          # connecting\r\n        path: assets\/js\/belvg-super.js # a .js library which is located under&nbsp; \/themes\/&lt;theme_folder&gt;\/assets\/js\/belvg-super.js\r\n        priority: 33                   # assigning the priority value 33 to the file\r\n        position: bottom               # outputting at the bottom of the page before the closing tag &lt;\/body&gt;\r\n        product:                       # only on a product page\r\n\r\n      - id: product-custom-lib    # connecting\r\n        path: assets\/js\/product.js&nbsp; # a .js library which is located under \/themes\/&lt;theme_folder&gt;\/assets\/js\/product.js\r\n        priority: 200               # assigning the priority value 200 to the file\r\n        attribute: async            # adding async attribute<\/pre>\n<p>In the table below you get the list of files that can are connected to PrestaShop automatically:<\/p>\n<table>\n<tbody>\n<tr>\n<td>Filename<\/td>\n<td>ID<\/td>\n<td>Priority<\/td>\n<td>Comment<\/td>\n<\/tr>\n<tr>\n<td>theme.css<\/td>\n<td>theme-main<\/td>\n<td>0<\/td>\n<td>Most (all?) of your theme&rsquo;s styles. Should be minified.<\/td>\n<\/tr>\n<tr>\n<td>rtl.css<\/td>\n<td>theme-rtl<\/td>\n<td>900<\/td>\n<td>Loaded only for Right-To-Left language<\/td>\n<\/tr>\n<tr>\n<td>custom.css<\/td>\n<td>theme-custom<\/td>\n<td>1000<\/td>\n<td>Empty file loaded at the very end to allow user to override some simple style.<\/td>\n<\/tr>\n<tr>\n<td>core.js<\/td>\n<td>corejs<\/td>\n<td>0<\/td>\n<td>Provided by PrestaShop. Contains Jquery2, dispatches PrestaShop events and holds PrestaShop logic.<\/td>\n<\/tr>\n<tr>\n<td>theme.js<\/td>\n<td>theme-main<\/td>\n<td>50<\/td>\n<td>Most of your theme&rsquo;s JavaScript. Should embed libraries required on all pages, and be minified.<\/td>\n<\/tr>\n<tr>\n<td>custom.js<\/td>\n<td>theme-custom<\/td>\n<td>1000<\/td>\n<td>Empty file loaded at the very end, to allow user to override behavior or add simple script.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><strong>&#1072;ssets.css<\/strong> &ndash; the property includes the list of pages and the list of connected .css files<\/p>\n<p><strong>conditional syntax:<\/strong><\/p>\n<p><em># &ndash; comments<\/em><br>\n<em>| &ndash; or<\/em><br>\n<em>[] &ndash; an optional parameter<\/em><br>\n<em>&lt;name variables&gt; &ndash; a variable value<\/em><br>\n<em>0..9 &ndash; enumeration of available values from 0 to 9<\/em><\/p>\n<pre class=\"lang:yaml decode:true\">assets:\r\n  css:\r\n    &lt;page_identifier&gt;|all:      # the list of all identifiers is available at the beginning \r\n                                #    of the article, all - for all pages\r\n      - id: &lt;assets_id&gt;         # a unique identifier\r\n        path: path\/to\/my.css    # the path to the file is taken from the theme folder\r\n        [priority: &lt;0..999&gt;]    # (default: 50), 0 is the highest priority\r\n        [inline: &lt;true|false&gt;]  # (default: false), If true, your style will be printed inside \r\n                                #    the &lt;style&gt; tag in your HTML &lt;head&gt;. Use with caution.\r\n        [media: &lt;all|braille|embossed|handheld|print|projection|screen|speech| tty|tv&gt;]   # (default: all)<\/pre>\n<p><strong>&#1072;ssets.js<\/strong> &ndash; the property includes the list of pages and the list of connected .js files<\/p>\n<p>The syntax is quite similar, you just have a few new parameters added there:<\/p>\n<pre class=\"lang:yaml decode:true\">assets:\r\n  js:\r\n    &lt;page_identifier&gt;|all:              # the list of all identifiers is available at \r\n                                        #   the beginning of the article, all - for all pages\r\n      - id: &lt;assets_id&gt;                 # a unique identifier\r\n        path: path\/to\/my-lib.js         # the path to the file is taken from the theme folder\r\n        [priority: &lt;0..999&gt;]            # (default: 50), 0 is the highest priority\r\n        [attribute: &lt;async|defer|none&gt;] # (default: none) Load JavaScript file with the corresponding attribute\r\n\r\n        [position: &lt;head|bottom&gt;]       # (default: bottom) JavaScript files should be loaded in the bottom \r\n                                        #    as much as possible. Remember: core.js is loaded first thing in the \r\n                                        #    bottom so jQuery won&rsquo;t be loaded in the &lt;head&gt; part.\r\n\r\n        [inline: &lt;true|false&gt;]          # (default: false), If true, your style will be printed \r\n                                        #    inside &lt;script type=\"text\/javascript\"&gt; tags inside your HTML. Use with caution.<\/pre>\n<h3>5. Global Settings<\/h3>\n<h4>5.1 Configuration of PrestaShop<\/h4>\n<p>The property <strong>global_settings.configuration<\/strong> is responsible for PrestaShop settings, therefore, when installing a new theme the settings will be changed.<\/p>\n<p><b>Example:<\/b><\/p>\n<pre class=\"lang:yaml decode:true\">global_settings:\r\n  configuration:\r\n    PS_SEARCH_AJAX: 0\r\n    PS_PNG_QUALITY: 8\r\n    BLOCKTAGS_NBR: 10\r\n    HOME_FEATURED_NBR: 8\r\n    BLOCKSPECIALS_SPECIALS_NBR: 8<\/pre>\n<h4>5.2 Modules<\/h4>\n<p><strong>modules.to_enable<\/strong> &ndash; All modules below are enabled when the theme is enabled (and installed if needed). They are disabled when the theme is disabled.<\/p>\n<p><strong>modules.to_disable<\/strong> &ndash; All modules below are disabled when the theme is enabled. They are re-enabled when the theme is disabled.<\/p>\n<p><b>Example:<\/b><\/p>\n<pre class=\"lang:yaml decode:true\">global_settings:\r\n  modules:\r\n    to_enable:\r\n      - my-custom-module\r\n      - yippeeslider\r\n    to_disable:\r\n      - homeslider\r\n      - blockwishlist<\/pre>\n<p>Using hooks you can control the place and output of any specific module on a page and also exclude the pages where that module is not needed. Most significantly, you can also create <a href=\"http:\/\/belvg.com\/blog\/custom-hooks-in-prestashop-1-7.html\">custom hooks<\/a> and define the modules that they will connect.<\/p>\n<p><b>Example:<\/b><\/p>\n<pre class=\"lang:php decode:true\">global_settings:\r\n  hooks:\r\n  custom_hooks:     # optional, yet for your theme users it might be important to know what this specific hook is responsible for and where it is located.\r\n    - name: myCustomHook\r\n      title: myCustomHook\r\n      description: Add a widget area above the footer\r\n      modules_to_hook:\r\n\r\n  myCustomHook:\r\n    - ps_contactinfo # ps_contactinfo is hooked on myCustomHook on all pages\r\n\r\n  displayNav2:\r\n    - ps_languageselector\r\n    - ps_currencyselector\r\n\r\n  displayNav1:\r\n    - ps_contactinfo:\r\n        except_pages:\r\n          - contact\r\n          - history\r\n          # ps_contactinfo is hooked on displayNav1 on all pages\r\n          # except \"contact\" and \"history\" pages\r\n\r\n  displayHomeTabs:\r\n    # displayHomeTabs will have whatever is currently hooked to it\r\n    # kept hooked to it, and ps_emailsubscription will be appended\r\n    # to the list (or moved to the end if already hooked there).\r\n    - ~\r\n    - ps_emailsubscription\r\n  displayTop:\r\n    - ps_mainmenu<\/pre>\n<h4>5.3 Image settings<\/h4>\n<p>Enabling the theme will remove all the existing image types.<\/p>\n<p>Therefore, themes MUST declare their image types, and what they apply to.<\/p>\n<p><b>Example:<\/b><\/p>\n<pre class=\"lang:yaml decode:true\">global_settings:\r\n  image_types:\r\n    cart_default:     #(an obligatory property)\r\n      width: 125\r\n      height: 125\r\n      scope: [products]\r\n\r\n    small_default:    #(an obligatory property )\r\n      width: 98\r\n      height: 98\r\n      scope: [products, categories, manufacturers, suppliers]\r\n\r\n    medium_default:   #(an obligatory property )\r\n      width: 452\r\n      height: 452\r\n      scope: [products, manufacturers, suppliers]\r\n\r\n    home_default:     #(an obligatory property )\r\n      width: 255\r\n      height: 320\r\n      scope: [products]\r\n\r\n    large_default:    #(an obligatory property )\r\n      width: 800\r\n      height: 800\r\n      scope: [products, manufacturers, suppliers]\r\n\r\n    category_default:   #(an obligatory property )\r\n      width: 141\r\n      height: 180\r\n      scope: [categories]\r\n<\/pre>\n<h4>5.4 Dependencies<\/h4>\n<p>To create a theme we may use various modules, but if you are using some third-party module it should be declared in the list of <strong>dependencies<\/strong> which Prestashop will download and install.<\/p>\n<p><b>Example:<\/b><\/p>\n<pre class=\"lang:default decode:true  \">dependencies:\r\n  modules:\r\n    - blockreassurance\r\n    - xx_customsubscription\r\n    - xx_customslider<\/pre>\n<div class=\"module_in_content_container\"><a href=\"https:\/\/store.belvg.com\/extensions\/prestashop.html\" class=\"link_to_module\" target=\"_blank\" rel=\"noopener\"><\/a><div class=\"module_content\"><img src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/06\/modules-prestashop-belvg.png\" width=\"481\" height=\"480\" alt=\"modules prestashop belvg\" class=\"module_image\" title=\"Theme.yml File: The Heart of Prestashop 1.7\"><div class=\"module_content_part\"><h3 class=\"title\">PrestaShop Modules by BelVG<\/h3><p class=\"module_content_text\">Take your store to the new level <\/p><a href=\"https:\/\/store.belvg.com\/extensions\/prestashop.html\" class=\"link_2_to_module\" target=\"_blank\" style=\"display:inline-block\" rel=\"noopener\"><span class=\"read-more\">Download here<\/span><\/a><\/div><\/div><\/div>\n\n","protected":false},"excerpt":{"rendered":"In this article we are going to explain why the theme.yml file is so important. &#8230;","protected":false},"author":60,"featured_media":12288,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"image","meta":{"_acf_changed":false,"footnotes":""},"categories":[15,520,461],"tags":[],"class_list":["post-12287","post","type-post","status-publish","format-image","has-post-thumbnail","hentry","category-prestashop","category-prestashop-custom-development","category-prestashop-development","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=\"In this article we are going to explain why the theme.yml file is so important. We review Theme info and settings, Meta info, Asset Management, Global Settings.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Alexey Homiakov\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/belvg.com\/blog\/theme-yml-file-the-heart-of-prestashop-1-7.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\\\/theme-yml-file-the-heart-of-prestashop-1-7.html#article\",\"name\":\"Theme.yml File: The Heart of Prestashop 1.7 | BelVG Blog\",\"headline\":\"Theme.yml File: The Heart of Prestashop 1.7\",\"author\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/alexey-homiakov#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/01\\\/Theme_yml-file.jpg\",\"width\":770,\"height\":209,\"caption\":\"Theme.yml file: The heart of Prestashop 1.7\"},\"datePublished\":\"2017-01-24T17:24:43+02:00\",\"dateModified\":\"2023-10-18T12:44:04+02:00\",\"inLanguage\":\"en-US\",\"commentCount\":2,\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/theme-yml-file-the-heart-of-prestashop-1-7.html#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/theme-yml-file-the-heart-of-prestashop-1-7.html#webpage\"},\"articleSection\":\"Prestashop, PrestaShop Custom Development, Prestashop Development, Image\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/theme-yml-file-the-heart-of-prestashop-1-7.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\\\/prestashop#listItem\",\"name\":\"Prestashop\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/category\\\/prestashop#listItem\",\"position\":2,\"name\":\"Prestashop\",\"item\":\"https:\\\/\\\/belvg.com\\\/blog\\\/category\\\/prestashop\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/theme-yml-file-the-heart-of-prestashop-1-7.html#listItem\",\"name\":\"Theme.yml File: The Heart of Prestashop 1.7\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/theme-yml-file-the-heart-of-prestashop-1-7.html#listItem\",\"position\":3,\"name\":\"Theme.yml File: The Heart of Prestashop 1.7\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/category\\\/prestashop#listItem\",\"name\":\"Prestashop\"}}]},{\"@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\\\/alexey-homiakov#author\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/alexey-homiakov\",\"name\":\"Alexey Homiakov\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/theme-yml-file-the-heart-of-prestashop-1-7.html#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/5ba504d9e7289ffde40eab791bf6a50ab2c43985e0313dd5d9ed1adcbe824e95?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Alexey Homiakov\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/theme-yml-file-the-heart-of-prestashop-1-7.html#webpage\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/theme-yml-file-the-heart-of-prestashop-1-7.html\",\"name\":\"Theme.yml File: The Heart of Prestashop 1.7 | BelVG Blog\",\"description\":\"In this article we are going to explain why the theme.yml file is so important. We review Theme info and settings, Meta info, Asset Management, Global Settings.\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/theme-yml-file-the-heart-of-prestashop-1-7.html#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/alexey-homiakov#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/alexey-homiakov#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/01\\\/Theme_yml-file.jpg\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/theme-yml-file-the-heart-of-prestashop-1-7.html\\\/#mainImage\",\"width\":770,\"height\":209,\"caption\":\"Theme.yml file: The heart of Prestashop 1.7\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/theme-yml-file-the-heart-of-prestashop-1-7.html#mainImage\"},\"datePublished\":\"2017-01-24T17:24:43+02:00\",\"dateModified\":\"2023-10-18T12:44:04+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":"Theme.yml File: The Heart of Prestashop 1.7 | BelVG Blog","description":"In this article we are going to explain why the theme.yml file is so important. We review Theme info and settings, Meta info, Asset Management, Global Settings.","canonical_url":"https:\/\/belvg.com\/blog\/theme-yml-file-the-heart-of-prestashop-1-7.html","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/belvg.com\/blog\/theme-yml-file-the-heart-of-prestashop-1-7.html#article","name":"Theme.yml File: The Heart of Prestashop 1.7 | BelVG Blog","headline":"Theme.yml File: The Heart of Prestashop 1.7","author":{"@id":"https:\/\/belvg.com\/blog\/author\/alexey-homiakov#author"},"publisher":{"@id":"https:\/\/belvg.com\/blog\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2017\/01\/Theme_yml-file.jpg","width":770,"height":209,"caption":"Theme.yml file: The heart of Prestashop 1.7"},"datePublished":"2017-01-24T17:24:43+02:00","dateModified":"2023-10-18T12:44:04+02:00","inLanguage":"en-US","commentCount":2,"mainEntityOfPage":{"@id":"https:\/\/belvg.com\/blog\/theme-yml-file-the-heart-of-prestashop-1-7.html#webpage"},"isPartOf":{"@id":"https:\/\/belvg.com\/blog\/theme-yml-file-the-heart-of-prestashop-1-7.html#webpage"},"articleSection":"Prestashop, PrestaShop Custom Development, Prestashop Development, Image"},{"@type":"BreadcrumbList","@id":"https:\/\/belvg.com\/blog\/theme-yml-file-the-heart-of-prestashop-1-7.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\/prestashop#listItem","name":"Prestashop"}},{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/category\/prestashop#listItem","position":2,"name":"Prestashop","item":"https:\/\/belvg.com\/blog\/category\/prestashop","nextItem":{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/theme-yml-file-the-heart-of-prestashop-1-7.html#listItem","name":"Theme.yml File: The Heart of Prestashop 1.7"},"previousItem":{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/theme-yml-file-the-heart-of-prestashop-1-7.html#listItem","position":3,"name":"Theme.yml File: The Heart of Prestashop 1.7","previousItem":{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/category\/prestashop#listItem","name":"Prestashop"}}]},{"@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\/alexey-homiakov#author","url":"https:\/\/belvg.com\/blog\/author\/alexey-homiakov","name":"Alexey Homiakov","image":{"@type":"ImageObject","@id":"https:\/\/belvg.com\/blog\/theme-yml-file-the-heart-of-prestashop-1-7.html#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/5ba504d9e7289ffde40eab791bf6a50ab2c43985e0313dd5d9ed1adcbe824e95?s=96&d=mm&r=g","width":96,"height":96,"caption":"Alexey Homiakov"}},{"@type":"WebPage","@id":"https:\/\/belvg.com\/blog\/theme-yml-file-the-heart-of-prestashop-1-7.html#webpage","url":"https:\/\/belvg.com\/blog\/theme-yml-file-the-heart-of-prestashop-1-7.html","name":"Theme.yml File: The Heart of Prestashop 1.7 | BelVG Blog","description":"In this article we are going to explain why the theme.yml file is so important. We review Theme info and settings, Meta info, Asset Management, Global Settings.","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/belvg.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/belvg.com\/blog\/theme-yml-file-the-heart-of-prestashop-1-7.html#breadcrumblist"},"author":{"@id":"https:\/\/belvg.com\/blog\/author\/alexey-homiakov#author"},"creator":{"@id":"https:\/\/belvg.com\/blog\/author\/alexey-homiakov#author"},"image":{"@type":"ImageObject","url":"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2017\/01\/Theme_yml-file.jpg","@id":"https:\/\/belvg.com\/blog\/theme-yml-file-the-heart-of-prestashop-1-7.html\/#mainImage","width":770,"height":209,"caption":"Theme.yml file: The heart of Prestashop 1.7"},"primaryImageOfPage":{"@id":"https:\/\/belvg.com\/blog\/theme-yml-file-the-heart-of-prestashop-1-7.html#mainImage"},"datePublished":"2017-01-24T17:24:43+02:00","dateModified":"2023-10-18T12:44:04+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":"12287","title":"Theme.yml File: The Heart of Prestashop 1.7 | #site_title","description":"In this article we are going to explain why the theme.yml file is so important. We review Theme info and settings, Meta info, Asset Management, Global Settings.","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:23","updated":"2026-11-03 18:37:23"},"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\/prestashop\" title=\"Prestashop\">Prestashop<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tTheme.yml File: The Heart of Prestashop 1.7\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/belvg.com\/blog\/"},{"label":"Prestashop","link":"https:\/\/belvg.com\/blog\/category\/prestashop"},{"label":"Theme.yml File: The Heart of Prestashop 1.7","link":"https:\/\/belvg.com\/blog\/theme-yml-file-the-heart-of-prestashop-1-7.html"}],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/posts\/12287","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\/60"}],"replies":[{"embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/comments?post=12287"}],"version-history":[{"count":14,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/posts\/12287\/revisions"}],"predecessor-version":[{"id":27549,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/posts\/12287\/revisions\/27549"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/media\/12288"}],"wp:attachment":[{"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/media?parent=12287"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/categories?post=12287"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/tags?post=12287"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}