{"id":881,"date":"2023-09-14T17:56:01","date_gmt":"2023-09-14T15:56:01","guid":{"rendered":"https:\/\/wypo.io\/documentations\/%taxomony%\/gutenberg-advanced-layout\/"},"modified":"2025-11-30T03:50:20","modified_gmt":"2025-11-30T02:50:20","slug":"gutenberg-advanced-layout","status":"publish","type":"wypo_documentations","link":"https:\/\/wypo.io\/en\/documentations\/gutenberg-advanced-layout\/","title":{"rendered":"Gutenberg Advanced Layout"},"content":{"rendered":"\n<div class=\"wp-block-group   hf_animated fade_bottom default is-layout-constrained wp-block-group-is-layout-constrained\">\n<h2 class=\"wp-block-heading   \" datalink=\"content-installation\">Installation<\/h2>\n\n\n\n<p class=\"\">To install the plugin, please refer to the &#8220;<a href=\"https:\/\/wypo.io\/en\/complete-guide-installing-wordpress-plugin\/\">Installing a plugin<\/a>&#8221; documentation.  <\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-group is-style-smallbordertop  hf_animated fade_bottom default is-layout-constrained wp-block-group-is-layout-constrained\">\n<h2 class=\"wp-block-heading\" datalink=\"content-layout-block\">Layout Block<\/h2>\n\n\n\n<p class=\"\">The <strong>Layout<\/strong> block serves as a container for advanced layout elements.<br>You can insert either a <strong>Columns<\/strong> block or a <strong>Grid<\/strong> block into it.<\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-group is-style-smallbordertop  hf_animated fade_bottom default is-layout-constrained wp-block-group-is-layout-constrained\">\n<h2 class=\"wp-block-heading\" datalink=\"content-columns-block\">Columns Block<\/h2>\n\n\n\n<p class=\"\">The <strong>Columns<\/strong> block allows you to create flexible column systems.<\/p>\n\n\n\n<ul class=\"wp-block-list  \">\n<li class=\"\">Easily adjust the width of columns.<\/li>\n\n\n\n<li class=\"\">Set different widths depending on screen size.<\/li>\n\n\n\n<li class=\"\">Align content vertically and horizontally.<\/li>\n\n\n\n<li class=\"\">Set the spacing between columns (gap), horizontally and vertically.<\/li>\n<\/ul>\n\n\n\n<p class=\"\">The <strong>Columns<\/strong> block is a sub-block of the <strong>Layout<\/strong> block.<\/p>\n\n\n      <div style=\"--_hfal-s-h-lg:var(--wp--preset--spacing--30);\" class=\"wp-block-habefast-spacer\"><\/div>\r\n      \n\n\n<h2 class=\"wp-block-heading\" datalink=\"content-column-block\">Column Block<\/h2>\n\n\n\n<p class=\"\">The <strong>Column<\/strong> block is the only child allowed in a <strong>Columns<\/strong> block. It can contain all types of blocks.<\/p>\n\n\n\n<p class=\"\"><strong>Parameters per column:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list  \">\n<li class=\"\">Show or hide the column (useful for creating margins).<\/li>\n\n\n\n<li class=\"\">Set the width of the column (several units available depending on the theme).<\/li>\n\n\n\n<li class=\"\">Change the order of the columns (reposition the columns).<\/li>\n<\/ul>\n<\/div>\n\n\n\n<div class=\"wp-block-group is-style-smallbordertop  hf_animated fade_bottom default is-layout-constrained wp-block-group-is-layout-constrained\">\n<h2 class=\"wp-block-heading\" datalink=\"content-grid-block\">Grid block<\/h2>\n\n\n\n<p class=\"\">The <strong>Grid<\/strong> block allows you to organize elements in a grid format.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-style-shadow  \"><img loading=\"lazy\" decoding=\"async\" width=\"1888\" height=\"628\" src=\"https:\/\/wypo.io\/wp-content\/uploads\/2023\/09\/wypo-documentation-gutenberg-advanced-layout-block-grid.png\" alt=\"Wypo Documentation Gutenberg Advanced Layout Block Grid\" class=\"wp-image-456\" srcset=\"https:\/\/wypo.io\/wp-content\/uploads\/2023\/09\/wypo-documentation-gutenberg-advanced-layout-block-grid.png 1888w, https:\/\/wypo.io\/wp-content\/uploads\/2023\/09\/wypo-documentation-gutenberg-advanced-layout-block-grid-300x100.png 300w, https:\/\/wypo.io\/wp-content\/uploads\/2023\/09\/wypo-documentation-gutenberg-advanced-layout-block-grid-1024x341.png 1024w, https:\/\/wypo.io\/wp-content\/uploads\/2023\/09\/wypo-documentation-gutenberg-advanced-layout-block-grid-768x255.png 768w, https:\/\/wypo.io\/wp-content\/uploads\/2023\/09\/wypo-documentation-gutenberg-advanced-layout-block-grid-1536x511.png 1536w\" sizes=\"(max-width: 1888px) 100vw, 1888px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list  \">\n<li class=\"\">Contains only <strong>Cell<\/strong> blocks.<\/li>\n\n\n\n<li class=\"\">Define the number of columns (max. 12) and rows (max. 12), with the option to adjust according to screen size.<\/li>\n\n\n\n<li class=\"\">Adjust the spacing (gap) between cells in the <strong>Dimensions<\/strong> section.<\/li>\n<\/ul>\n\n\n\n<p class=\"\">The <strong>Grid<\/strong> block is a sub-block of the <strong>Layout<\/strong> block.<\/p>\n\n\n      <div style=\"--_hfal-s-h-lg:var(--wp--preset--spacing--30);\" class=\"wp-block-habefast-spacer\"><\/div>\r\n      \n\n\n<h2 class=\"wp-block-heading\" datalink=\"content-cell-block\">Cell block<\/h2>\n\n\n\n<p class=\"\">The Cell block is the only child allowed in a Grid block. It can contain all types of blocks.<\/p>\n\n\n\n<p class=\"\"><strong>Parameters per cell:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list  \">\n<li class=\"\">Start column and width.<\/li>\n\n\n\n<li class=\"\">Start line and height.<\/li>\n\n\n\n<li class=\"\">Overlay order (z-index).<\/li>\n\n\n\n<li class=\"\">Minimum height.<\/li>\n<\/ul>\n<\/div>\n\n\n\n<div class=\"wp-block-group is-style-smallbordertop  hf_animated fade_bottom default is-layout-constrained wp-block-group-is-layout-constrained\">\n<h2 class=\"wp-block-heading\" datalink=\"content-advanced-group\">Advanced Group<\/h2>\n\n\n\n<p class=\"\">The <strong>Advanced Group<\/strong> block builds on the features of the native WordPress <strong>Group<\/strong> block and takes them much further: it includes a wide range of CSS properties and allows precise, responsive control of styles for every screen size. This provides maximum flexibility for creating complex, customized, and fully adaptive layouts without touching any code.<\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-group is-style-smallbordertop  hf_animated fade_bottom default is-layout-constrained wp-block-group-is-layout-constrained\">\n<h2 class=\"wp-block-heading\" datalink=\"content-personalization\">Personalization<\/h2>\n\n\n\n<p class=\"\">By default, three screen sizes are available:<\/p>\n\n\n    <div class=\"wp-block-habefast-code  \">\n      <header class=\"habefast-code-header\">\n        <div class=\"habefast-code-lang is-lang-php\">\n          PHP        <\/div>\n      <\/header>\n      <textarea\n        class=\"habefast-code-source\"\n        name=\"codemirror-1897549790\"\n        id=\"codemirror-1897549790\"\n      >return &#91;\n\t&quot;lg&quot;=&gt;&#91;&quot;label&quot;=&gt;__(&quot;Desktop&quot;),&quot;max&quot;=&gt;&quot;&quot;&#93;,\n    &quot;md&quot;=&gt;&#91;&quot;label&quot;=&gt;__(&quot;Tablet&quot;),&quot;max&quot;=&gt;&quot;991&quot;&#93;,\n    &quot;sm&quot;=&gt;&#91;&quot;label&quot;=&gt;__(&quot;Mobile&quot;),&quot;max&quot;=&gt;&quot;767&quot;,&quot;autoStack&quot;=&gt;true&#93;,\n&#93;;<\/textarea>\n      <script>\n        CodeMirror.fromTextArea( document.getElementById('codemirror-1897549790'), {\n          mode: {name:'php',startOpen:true},\n          readOnly: true,\n          lineNumbers: true,\n          firstLineNumber: 1,\n          matchBrackets: true,\n          indentUnit: 4,\n          tabSize: 4,\n          lineWrapping: true,\n        } );\n      <\/script>\n    <\/div>\n    \n\n\n<p class=\"\">You can change screen sizes to manage responsive.<\/p>\n\n\n\n<p class=\"\">The changes will apply to all blocks on the site.<\/p>\n\n\n\n<p class=\"\">The &#8220;lg&#8221; size defined with &#8220;Gutenberg Advanced Layout&#8221; is <strong>reserved<\/strong>; you can only modify its label.<\/p>\n\n\n\n<p class=\"\">The &#8220;sm&#8221; (mobile) size is set to &#8220;autoStack&#8221; to force default stacking of columns and cells.<\/p>\n\n\n\n<p class=\"has-normal-font-size\">To add a new screen size, copy the following code into your child theme&#8217;s functions.php file:<\/p>\n\n\n    <div class=\"wp-block-habefast-code  \">\n      <header class=\"habefast-code-header\">\n        <div class=\"habefast-code-lang is-lang-php\">\n          PHP        <\/div>\n      <\/header>\n      <textarea\n        class=\"habefast-code-source\"\n        name=\"codemirror-826754138\"\n        id=\"codemirror-826754138\"\n      >add_filter(&quot;habefast_gutenberg_advanced_layout_breakpoints&quot;,function($array){\n\t$array&#91;&quot;xl&quot;&#93; = &#91;&quot;label&quot;=&gt;__(&quot;Laptop&quot;),&quot;max&quot;=&gt;&quot;1400&quot;&#93;;\n\treturn $array;\n},11);<\/textarea>\n      <script>\n        CodeMirror.fromTextArea( document.getElementById('codemirror-826754138'), {\n          mode: {name:'php',startOpen:true},\n          readOnly: true,\n          lineNumbers: true,\n          firstLineNumber: 1,\n          matchBrackets: true,\n          indentUnit: 4,\n          tabSize: 4,\n          lineWrapping: true,\n        } );\n      <\/script>\n    <\/div>\n    \n\n\n<div style=\"height:35px\" aria-hidden=\"true\" class=\"wp-block-spacer  \"><\/div>\n\n\n\n<p class=\"has-normal-font-size\">To delete a screen size:<\/p>\n\n\n    <div class=\"wp-block-habefast-code  \">\n      <header class=\"habefast-code-header\">\n        <div class=\"habefast-code-lang is-lang-php\">\n          PHP        <\/div>\n      <\/header>\n      <textarea\n        class=\"habefast-code-source\"\n        name=\"codemirror-1880606603\"\n        id=\"codemirror-1880606603\"\n      >add_filter(&quot;habefast_gutenberg_advanced_layout_breakpoints&quot;,function($array){\n\tif(isset($array&#91;&quot;md&quot;&#93;)){\n\t\tunset($array&#91;&quot;md&quot;&#93;);\n\t}\n\treturn $array;\n},11);<\/textarea>\n      <script>\n        CodeMirror.fromTextArea( document.getElementById('codemirror-1880606603'), {\n          mode: {name:'php',startOpen:true},\n          readOnly: true,\n          lineNumbers: true,\n          firstLineNumber: 1,\n          matchBrackets: true,\n          indentUnit: 4,\n          tabSize: 4,\n          lineWrapping: true,\n        } );\n      <\/script>\n    <\/div>\n    \n\n\n<div style=\"height:35px\" aria-hidden=\"true\" class=\"wp-block-spacer  \"><\/div>\n\n\n\n<p class=\"has-normal-font-size\">To change screen size:<\/p>\n\n\n    <div class=\"wp-block-habefast-code  \">\n      <header class=\"habefast-code-header\">\n        <div class=\"habefast-code-lang is-lang-php\">\n          PHP        <\/div>\n      <\/header>\n      <textarea\n        class=\"habefast-code-source\"\n        name=\"codemirror-1653707336\"\n        id=\"codemirror-1653707336\"\n      >add_filter(&quot;habefast_gutenberg_advanced_layout_breakpoints&quot;,function($array){\n\tif(isset($array&#91;&quot;md&quot;&#93;)){\n\t\t$array&#91;&quot;md&quot;&#93;&#91;&quot;max&quot;&#93; = &quot;1200&quot;;\n\t}\n\treturn $array;\n},11);<\/textarea>\n      <script>\n        CodeMirror.fromTextArea( document.getElementById('codemirror-1653707336'), {\n          mode: {name:'php',startOpen:true},\n          readOnly: true,\n          lineNumbers: true,\n          firstLineNumber: 1,\n          matchBrackets: true,\n          indentUnit: 4,\n          tabSize: 4,\n          lineWrapping: true,\n        } );\n      <\/script>\n    <\/div>\n    \n\n\n<div style=\"height:35px\" aria-hidden=\"true\" class=\"wp-block-spacer  \"><\/div>\n\n\n\n<p class=\"has-normal-font-size\">To force stacking on a specific screen size:<\/p>\n\n\n    <div class=\"wp-block-habefast-code  \">\n      <header class=\"habefast-code-header\">\n        <div class=\"habefast-code-lang is-lang-php\">\n          PHP        <\/div>\n      <\/header>\n      <textarea\n        class=\"habefast-code-source\"\n        name=\"codemirror-1640871193\"\n        id=\"codemirror-1640871193\"\n      >add_filter(&quot;habefast_gutenberg_advanced_layout_breakpoints&quot;,function($array){\n\tif(isset($array&#91;&quot;md&quot;&#93;)){\n\t\t$array&#91;&quot;md&quot;&#93;&#91;&quot;autoStack&quot;&#93; = true;\n\t}\n\treturn $array;\n},11);<\/textarea>\n      <script>\n        CodeMirror.fromTextArea( document.getElementById('codemirror-1640871193'), {\n          mode: {name:'php',startOpen:true},\n          readOnly: true,\n          lineNumbers: true,\n          firstLineNumber: 1,\n          matchBrackets: true,\n          indentUnit: 4,\n          tabSize: 4,\n          lineWrapping: true,\n        } );\n      <\/script>\n    <\/div>\n    <\/div>\n\n\n\n<div class=\"wp-block-group is-style-smallbordertop  hf_animated fade_bottom default is-layout-constrained wp-block-group-is-layout-constrained\">\n<h2 class=\"wp-block-heading\" datalink=\"content-css-variables-reset-manual-definition\">CSS Variables \u2014 Reset &amp; Manual Definition<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" datalink=\"content-why-manage-css-variables\">Why Manage CSS Variables<\/h3>\n\n\n\n<p class=\"\">The plugin uses CSS custom properties (CSS variables) to enable dynamic styling of blocks (colors, spacing, etc.). Because CSS variables are inherited from parent elements, a style defined on a container can unintentionally affect nested blocks.<br>When working with nested layouts (columns, cells, grids, etc.), it often becomes necessary to:<\/p>\n\n\n\n<ul class=\"wp-block-list  \">\n<li class=\"\">stop inheriting variables defined by a parent so the child block starts from a neutral baseline,<\/li>\n\n\n\n<li class=\"\">or explicitly define new variables on a specific block to style it independently.<\/li>\n<\/ul>\n\n\n\n<p class=\"\">Gutenberg Advanced Layout provides controls in the advanced settings of each block to handle these situations.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" datalink=\"content-resetting-inherited-variables\">Resetting Inherited Variables<\/h3>\n\n\n\n<p class=\"\">The Layout and Group blocks include an option in their advanced settings that allows you to reset specific CSS variables.<br>This stops the propagation of variables defined on parent blocks and prevents inherited styles from affecting child blocks.<\/p>\n\n\n\n<p class=\"\">When entering variables to reset, the following shortcodes are available:<\/p>\n\n\n\n<ul class=\"wp-block-list  \">\n<li class=\"\"><strong><code>[allbreakpoints]<\/code><\/strong><br>Automatically expands the variable for each breakpoint prefix configured in the plugin.<br>Example: <code>--gap-[allbreakpoints]: unset;<\/code> will generate one line per breakpoint.<\/li>\n\n\n\n<li class=\"\"><strong><code>[allpadding]<\/code><\/strong><br>Expands the variable for: <code>p-t<\/code>, <code>p-b<\/code>, <code>p-l<\/code>, <code>p-r<\/code>.<\/li>\n\n\n\n<li class=\"\"><strong><code>[allmargin]<\/code><\/strong><br>Expands the variable for: <code>m-t<\/code>, <code>m-b<\/code>, <code>m-l<\/code>, <code>m-r<\/code>.<\/li>\n<\/ul>\n\n\n\n<p class=\"\">These shortcodes make it easier to write series of variables without having to enter each one manually.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" datalink=\"content-manual-definition-of-variables-on-a-block\">Manual definition of variables on a block<\/h3>\n\n\n\n<p class=\"\">All blocks can manually define CSS custom properties from their advanced settings.<br>You select:<\/p>\n\n\n\n<ul class=\"wp-block-list  \">\n<li class=\"\">the variable name (e.g., <code>--section-bg<\/code>),<\/li>\n\n\n\n<li class=\"\">the value to apply (e.g., <code>#fafafa<\/code> or <code>20px<\/code>).<\/li>\n<\/ul>\n\n\n\n<p class=\"\">This feature allows a block to have completely independent styling, useful for:<\/p>\n\n\n\n<ul class=\"wp-block-list  \">\n<li class=\"\">changing the colors of a section,<\/li>\n\n\n\n<li class=\"\">applying specific spacing,<\/li>\n\n\n\n<li class=\"\">fully isolating a block\u2019s styles even when it is nested.<\/li>\n<\/ul>\n\n\n\n<p class=\"\">The previously mentioned shortcodes (<code>&#91;allbreakpoints&#93;<\/code>, <code>&#91;allpadding&#93;<\/code>, <code>&#91;allmargin&#93;<\/code>) are also available to automate variable generation.<\/p>\n<\/div>\n","protected":false},"featured_media":0,"parent":0,"menu_order":56,"template":"","meta":{"_habefastfse_class":"","hf_wpseo_meta_title":"Plugin Gutenberg Advanced Layout | Documentation","hf_wpseo_meta_description":"Improve the layout of your WordPress site with the Gutenberg Advanced Layout plugin. Create responsive, customisable designs easily with advanced column block and grid functionality. Easy to install and intuitive to use.","hf_wpseo_meta_robots_index":"","hf_wpseo_meta_robots_follow":true,"hf_wpseo_meta_robots_advanced":"{}","hf_wpseo_meta_canonical_url":"","documentation_description":"Gutenberg Advanced Layout adds a Layout block to the Gutenberg editor, allowing you to create advanced layouts with Columns and Grids.","documentation_menu_text":"","documentation_related_pageid":182,"wypo_hidden_role_wypo_users_not_logged":false,"wypo_visibility_role_wypo_users_not_logged":false,"wypo_hidden_role_administrator":false,"wypo_visibility_role_administrator":false,"wypo_hidden_role_habefast":false,"wypo_visibility_role_habefast":false,"wypo_hidden_role_customer":false,"wypo_visibility_role_customer":false,"wypo_hidden_role_habefast_manager":false,"wypo_visibility_role_habefast_manager":false,"wypo_hidden_for_role":false,"wypo_visibility_for_role":false},"class_list":["post-881","wypo_documentations","type-wypo_documentations","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/wypo.io\/en\/wp-json\/wp\/v2\/wypo_documentations\/881","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wypo.io\/en\/wp-json\/wp\/v2\/wypo_documentations"}],"about":[{"href":"https:\/\/wypo.io\/en\/wp-json\/wp\/v2\/types\/wypo_documentations"}],"wp:attachment":[{"href":"https:\/\/wypo.io\/en\/wp-json\/wp\/v2\/media?parent=881"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}