<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Block editor &#8211; Marcos Rego</title>
	<atom:link href="https://marcosrego.com/tag/block-editor/feed/" rel="self" type="application/rss+xml" />
	<link>https://marcosrego.com</link>
	<description>Web Development</description>
	<lastBuildDate>Mon, 05 Feb 2024 15:25:53 +0000</lastBuildDate>
	<language>en-GB</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.1</generator>
	<item>
		<title>More than 6 essential mouseover effects for the block editor</title>
		<link>https://marcosrego.com/blog/block-editor-mouseover-effects/</link>
		
		<dc:creator><![CDATA[Marcos Rego]]></dc:creator>
		<pubDate>Thu, 21 Apr 2022 23:50:55 +0000</pubDate>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Block editor]]></category>
		<category><![CDATA[Mr.Utils]]></category>
		<category><![CDATA[Tips and tricks]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Wordpress]]></category>
		<guid isPermaLink="false">https://marcosrego.com/?p=2567</guid>

					<description><![CDATA[Know how to add mouseover effects such as zoom, ease in-out, font-size and others, when mouse hovering a block on WordPress using Mr.Utils&#8230; Get mouseover options on the block editor One of the cool features of Mr.Utils is the ability to easily install it as a WordPress plugin for free. When you do so, an [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>Know how to add mouseover effects such as zoom, ease in-out, font-size and others, when mouse hovering a block on WordPress using Mr.Utils&#8230;</p>



<span id="more-2567"></span>



<aside class="  wp-block-group sidebar has-main-text-color-color has-aside-background-color-background-color has-text-color has-background"><div class="wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow">
<section class="wp-block-group has-main-text-color-color has-main-background-color-background-color has-text-color has-background"><div class="wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow">
<h3 class="   has-main-text-color-color has-text-color wp-block-heading"><strong>Did you know?</strong></h3>



<figure class="    wp-block-image size-large"><img fetchpriority="high" decoding="async" width="1024" height="538" src="https://marcosrego.com/wp-content/uploads/2021/06/mrutils-marcosrego-opengraph-1024x538.png" alt="Mr.Utils Opengraph Image" class="wp-image-1029" title="mrutils marcosrego opengraph - More than 6 essential mouseover effects for the block editor" srcset="https://marcosrego.com/wp-content/uploads/2021/06/mrutils-marcosrego-opengraph-1024x538.png 1024w, https://marcosrego.com/wp-content/uploads/2021/06/mrutils-marcosrego-opengraph-300x158.png 300w, https://marcosrego.com/wp-content/uploads/2021/06/mrutils-marcosrego-opengraph-768x403.png 768w, https://marcosrego.com/wp-content/uploads/2021/06/mrutils-marcosrego-opengraph.png 1200w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p class="  has-main-text-color-color has-text-color"><strong><a href="https://marcosrego.com/development/mr-utils/" data-type="post" data-id="473">Mr.Utils</a></strong> can be installed as a <strong>WordPress plugin</strong>.<br>Give to the <strong>block editor</strong> super-powers such as <strong>pagination or components</strong> and apply changes <strong>depending of the device</strong>!</p>



<div class="wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex">
<div class="   wp-block-button"><a class="wp-block-button__link has-invert-color-color has-link-color-background-color has-text-color has-background" href="https://marcosrego.com/client-area/downloads/?product=mrutils"><strong>Get it now (free)</strong></a></div>
</div>
</div></section>
</div></aside>



<h2 class="wp-block-heading"><strong>Get mouseover options on the block editor</strong></h2>



<p>One of the cool features of <a href="https://marcosrego.com/development/mr-utils/" data-type="post" data-id="473">Mr.Utils</a> is the ability to easily install it as a WordPress plugin for free.</p>



<p>When you do so, an interface will appear on the block editor, allowing you to easily use the utility classes of this front-end toolkit.</p>



<p>One type of utility class is the mouse hover state, let&#8217;s focus on that for this post.</p>



<p><em>Note: If you prefer, you can <a href="https://github.com/marcosrego-web/mr-utils/wiki#installation" data-type="URL" data-id="https://github.com/marcosrego-web/mr-utils/wiki#installation" target="_blank" rel="noreferrer noopener">install Mr.Utils</a> without the interface and use the classes on each block Advanced section.</em></p>



<div style="height:30px" aria-hidden="true" class="  wp-block-spacer"></div>


<div class="wp-block-image">
<figure class="     aligncenter size-full"><img decoding="async" width="275" height="714" src="https://marcosrego.com/wp-content/uploads/2022/04/screenshot-4.png" alt="Mr.Utils interface on block editor showing mouseover options" class="wp-image-2572" title="screenshot 4 - More than 6 essential mouseover effects for the block editor" srcset="https://marcosrego.com/wp-content/uploads/2022/04/screenshot-4.png 275w, https://marcosrego.com/wp-content/uploads/2022/04/screenshot-4-116x300.png 116w" sizes="(max-width: 275px) 100vw, 275px" /><figcaption class="wp-element-caption">Mr.Utils interface on block editor showing mouse hover options</figcaption></figure></div>


<div style="height:50px" aria-hidden="true" class="  wp-block-spacer"></div>



<h2 class="wp-block-heading"><strong>Animations</strong></h2>



<p>On the Animation section of the <em>Hover</em> tab (zigzag arrow icon) you will find options such as Fade, Slide, Scale and Zoom.</p>



<p>One thing to keep in mind when selecting one of those options is: By default, the animation will only occur when mouse hovering above the element, nothing will happen when mouse hovering outside the element&#8230; If you want the animation to rollback when you go outside the element, you must go to the <em>Animation</em> section of the <em>Global</em> tab (first tab) and select the transition type (e.g. Ease In Out).<br>Once you apply a transition globally, the animation will react to both hover situations.</p>



<h3 class="  wp-block-heading"><strong>Live example using <em>Zoom</em> animation</strong></h3>



<div style="height:30px" aria-hidden="true" class="  wp-block-spacer"></div>



<p class=" mr-hover-zoom mr-active mr-easeinout mr-hover-easeinout  mr-hover-zoom mr-active  mr-easeinout  mr-hover-easeinout  has-text-align-center mr-hover-zoom mr-active mr-easeinout mr-hover-easeinout"><strong>This paragraph block animates on mouseover!</strong></p>



<div style="height:50px" aria-hidden="true" class="  wp-block-spacer"></div>



<h2 class="wp-block-heading"><strong>Layout change</strong></h2>



<p>On the <em>Layout</em> section of the <em>Hover</em> tab (zigzag arrow icon) you will find options to change the size (width) of a block.</p>



<p>If you want to change the initial size, simply go to the <em>Layout</em> section on the <em>Global</em> tab (first tab) and find the similar option.</p>



<p>By default, the size will change without any transition/animation. If you want the block to change the size smoothly, you must go to the <em>Animation</em> section of the <em>Global</em> tab and select the transition type (e.g. Ease In Out).</p>



<h3 class="  wp-block-heading"><strong>Live example of size change</strong></h3>


<div class="wp-block-image mr-size11 mr-hover-size13 mr-easeinout">
<figure class="      alignleft size-large"><img decoding="async" width="1024" height="768" src="https://marcosrego.com/wp-content/uploads/2021/11/screenshot-1024x768.png" alt="Mr.Dev.&#039;s Theme Screenshot" class="wp-image-2481" title="screenshot - More than 6 essential mouseover effects for the block editor" srcset="https://marcosrego.com/wp-content/uploads/2021/11/screenshot-1024x768.png 1024w, https://marcosrego.com/wp-content/uploads/2021/11/screenshot-300x225.png 300w, https://marcosrego.com/wp-content/uploads/2021/11/screenshot-768x576.png 768w, https://marcosrego.com/wp-content/uploads/2021/11/screenshot.png 1200w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption class="wp-element-caption">This image will change width on mouseover</figcaption></figure></div>


<div style="height:50px" aria-hidden="true" class="  wp-block-spacer"></div>



<h2 class="wp-block-heading"><strong>Display changes</strong></h2>



<p>On the <em>Display </em>section of the <em>Hover</em> tab (zigzag arrow icon) you will find options to change the visibility type of a block.</p>



<p><a href="https://github.com/marcosrego-web/mr-utils/wiki/Utility-Classes#display" target="_blank" data-type="URL" data-id="https://github.com/marcosrego-web/mr-utils/wiki/Utility-Classes#display" rel="noreferrer noopener">Here you can better understand the differences between the visibility types.</a></p>



<p>With these options, you can make a block semi-opaque or totally opaque on mouseover. To do the latter, you must first put the block semi-opaque by default on the <em>Display</em> section of the <em>Global</em> tab (you can also use the option on the <em>Desktop</em> tab [screen icon]).</p>



<p>Just like changing the layout, if you want a smooth transition you must choose the transition type on the <em>Animations </em>section (e.g. Ease In Out).</p>



<h3 class="  wp-block-heading"><strong>Live example of visibility change</strong></h3>



<div class="wp-block-buttons is-horizontal is-nowrap is-layout-flex wp-container-core-buttons-is-layout-2 wp-block-buttons-is-layout-flex">
<div class="   mr-semiopaque mr-hover-opaque  mr-semiopaque  mr-hover-opaque  wp-block-button aligncenter mr-semiopaque mr-hover-opaque"><a class="wp-block-button__link has-invert-color-color has-link-color-background-color has-text-color has-background wp-element-button"><strong>This button will become opaque on mouseover!</strong></a></div>



<div class="   mr-easeinout mr-transparent mr-hover-opaque  mr-easeinout  mr-transparent  mr-hover-opaque  wp-block-button aligncenter mr-easeinout mr-transparent mr-hover-opaque"><a class="wp-block-button__link has-invert-color-color has-link-color-background-color has-text-color has-background wp-element-button">Hey you found the transparent button also!</a></div>
</div>



<div style="height:50px" aria-hidden="true" class="  wp-block-spacer"></div>



<h2 class="wp-block-heading"><strong>Spacing changes</strong></h2>



<p>On the <em>Spacing </em>section of the <em>Hover</em> tab (zigzag arrow icon) you will find options to change the spacing (paddings or/and margins) of a block.</p>



<p>Just like changing the layout or display, if you want a smooth transition you must choose the transition type on the <em>Animations </em>section (e.g. Ease In Out) of the <em>Global</em> tab (first tab).</p>



<h3 class="  wp-block-heading"><strong>Live example of paddings change</strong></h3>



<div style="height:30px" aria-hidden="true" class="  wp-block-spacer"></div>



<figure class="   mr-size11 mr-easeinout mr-hover-paddingtop mr-hover-paddingleft mr-marginleft  mr-easeinout  mr-hover-paddingtop  mr-hover-paddingleft  mr-marginleft  wp-block-image size-large mr-size11 mr-easeinout mr-hover-paddingtop mr-hover-paddingleft mr-marginleft"><img decoding="async" width="1024" height="768" src="https://marcosrego.com/wp-content/uploads/2021/11/screenshot-1024x768.png" alt="Mr.Dev.&#039;s Theme Screenshot" class="wp-image-2481" title="screenshot - More than 6 essential mouseover effects for the block editor" srcset="https://marcosrego.com/wp-content/uploads/2021/11/screenshot-1024x768.png 1024w, https://marcosrego.com/wp-content/uploads/2021/11/screenshot-300x225.png 300w, https://marcosrego.com/wp-content/uploads/2021/11/screenshot-768x576.png 768w, https://marcosrego.com/wp-content/uploads/2021/11/screenshot.png 1200w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption class="wp-element-caption">A padding-top and padding-left will be added to this image on mouseover</figcaption></figure>



<div style="height:50px" aria-hidden="true" class="  wp-block-spacer"></div>



<h2 class="wp-block-heading"><strong>Text size change</strong></h2>



<p>On the <em>Text </em>section of the <em>Hover</em> tab (zigzag arrow icon) you will find options to change the font-size of a block.</p>



<p>Just like changing the layout, display or spacing, if you want a smooth transition you must choose the transition type on the <em>Animations </em>section (e.g. Ease In Out) of the <em>Global</em> tab (first tab).</p>



<h3 class="  wp-block-heading"><strong>Live example of font-size change</strong></h3>



<div style="height:30px" aria-hidden="true" class="  wp-block-spacer"></div>



<p class="mr-hover-fontsize5 mr-easeinout  mr-easeinout  mr-hover-fontsize5 mr-easeinout"><strong><em>This paragraph block will have it&#8217;s font-size increased on mouseover!</em></strong></p>



<div style="height:50px" aria-hidden="true" class="  wp-block-spacer"></div>



<h2 class="wp-block-heading"><strong>Misc. Changes</strong></h2>



<p>On the <em>Misc. </em>section of the <em>Hover</em> tab (zigzag arrow icon) you will find some extra options such has:</p>



<h3 class="  wp-block-heading"><strong>Showing a scrollbar only when mouse hovering an element</strong></h3>



<p>There are more than 3 images below. Mouseover to see the scrollbar that will allow you to see all of them!</p>



<figure class=" mr-hidescroll mr-horizontalscroll mr-hover-scroll  mr-horizontalscroll  mr-hover-scroll  wp-block-gallery has-nested-images columns-default is-cropped mr-hidescroll mr-horizontalscroll mr-hover-scroll wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex">
<figure class="     wp-block-image size-large"><img loading="lazy" decoding="async" width="1200" height="630" data-id="1012" src="https://marcosrego.com/wp-content/uploads/2021/04/marcosrego-itemzero-open-graph.png" alt="Itemzero Open Graph Image" class="wp-image-1012" title="marcosrego itemzero open graph - More than 6 essential mouseover effects for the block editor" srcset="https://marcosrego.com/wp-content/uploads/2021/04/marcosrego-itemzero-open-graph.png 1200w, https://marcosrego.com/wp-content/uploads/2021/04/marcosrego-itemzero-open-graph-300x158.png 300w, https://marcosrego.com/wp-content/uploads/2021/04/marcosrego-itemzero-open-graph-1024x538.png 1024w, https://marcosrego.com/wp-content/uploads/2021/04/marcosrego-itemzero-open-graph-768x403.png 768w" sizes="auto, (max-width: 1200px) 100vw, 1200px" /></figure>



<figure class="     wp-block-image size-large"><img loading="lazy" decoding="async" width="1200" height="630" data-id="1013" src="https://marcosrego.com/wp-content/uploads/2021/06/rydoo-marcosrego-opengraph.png" alt="Rydoo Opengraph Image" class="wp-image-1013" title="rydoo marcosrego opengraph - More than 6 essential mouseover effects for the block editor" srcset="https://marcosrego.com/wp-content/uploads/2021/06/rydoo-marcosrego-opengraph.png 1200w, https://marcosrego.com/wp-content/uploads/2021/06/rydoo-marcosrego-opengraph-300x158.png 300w, https://marcosrego.com/wp-content/uploads/2021/06/rydoo-marcosrego-opengraph-1024x538.png 1024w, https://marcosrego.com/wp-content/uploads/2021/06/rydoo-marcosrego-opengraph-768x403.png 768w" sizes="auto, (max-width: 1200px) 100vw, 1200px" /></figure>



<figure class="     wp-block-image size-large"><img loading="lazy" decoding="async" width="1200" height="630" data-id="1014" src="https://marcosrego.com/wp-content/uploads/2021/03/storylabs-marcosrego-opengraph.png" alt="Storylabs Opengraph Image" class="wp-image-1014" title="storylabs marcosrego opengraph - More than 6 essential mouseover effects for the block editor" srcset="https://marcosrego.com/wp-content/uploads/2021/03/storylabs-marcosrego-opengraph.png 1200w, https://marcosrego.com/wp-content/uploads/2021/03/storylabs-marcosrego-opengraph-300x158.png 300w, https://marcosrego.com/wp-content/uploads/2021/03/storylabs-marcosrego-opengraph-1024x538.png 1024w, https://marcosrego.com/wp-content/uploads/2021/03/storylabs-marcosrego-opengraph-768x403.png 768w" sizes="auto, (max-width: 1200px) 100vw, 1200px" /></figure>



<figure class="     wp-block-image size-large"><img loading="lazy" decoding="async" width="1200" height="630" data-id="1015" src="https://marcosrego.com/wp-content/uploads/2021/03/rubenrdias-marcosrego-opengraph.png" alt="Ruben R. Dias Opengraph Image" class="wp-image-1015" title="rubenrdias marcosrego opengraph - More than 6 essential mouseover effects for the block editor" srcset="https://marcosrego.com/wp-content/uploads/2021/03/rubenrdias-marcosrego-opengraph.png 1200w, https://marcosrego.com/wp-content/uploads/2021/03/rubenrdias-marcosrego-opengraph-300x158.png 300w, https://marcosrego.com/wp-content/uploads/2021/03/rubenrdias-marcosrego-opengraph-1024x538.png 1024w, https://marcosrego.com/wp-content/uploads/2021/03/rubenrdias-marcosrego-opengraph-768x403.png 768w" sizes="auto, (max-width: 1200px) 100vw, 1200px" /></figure>



<figure class="     wp-block-image size-large"><img loading="lazy" decoding="async" width="1200" height="630" data-id="1016" src="https://marcosrego.com/wp-content/uploads/2021/01/gjp-marcosrego-opengraph.png" alt="GJP Opengraph Image" class="wp-image-1016" title="gjp marcosrego opengraph - More than 6 essential mouseover effects for the block editor" srcset="https://marcosrego.com/wp-content/uploads/2021/01/gjp-marcosrego-opengraph.png 1200w, https://marcosrego.com/wp-content/uploads/2021/01/gjp-marcosrego-opengraph-300x158.png 300w, https://marcosrego.com/wp-content/uploads/2021/01/gjp-marcosrego-opengraph-1024x538.png 1024w, https://marcosrego.com/wp-content/uploads/2021/01/gjp-marcosrego-opengraph-768x403.png 768w" sizes="auto, (max-width: 1200px) 100vw, 1200px" /></figure>



<figure class="     wp-block-image size-large"><img loading="lazy" decoding="async" width="1200" height="630" data-id="1017" src="https://marcosrego.com/wp-content/uploads/2020/11/openbook-marcosrego-opengraph.png" alt="Openbook Opengraph Image" class="wp-image-1017" title="openbook marcosrego opengraph - More than 6 essential mouseover effects for the block editor" srcset="https://marcosrego.com/wp-content/uploads/2020/11/openbook-marcosrego-opengraph.png 1200w, https://marcosrego.com/wp-content/uploads/2020/11/openbook-marcosrego-opengraph-300x158.png 300w, https://marcosrego.com/wp-content/uploads/2020/11/openbook-marcosrego-opengraph-1024x538.png 1024w, https://marcosrego.com/wp-content/uploads/2020/11/openbook-marcosrego-opengraph-768x403.png 768w" sizes="auto, (max-width: 1200px) 100vw, 1200px" /></figure>



<figure class="     wp-block-image size-large"><img loading="lazy" decoding="async" width="1200" height="630" data-id="1018" src="https://marcosrego.com/wp-content/uploads/2020/09/cookit-marcosrego-opengraph.png" alt="Cookit Opengraph Image" class="wp-image-1018" title="cookit marcosrego opengraph - More than 6 essential mouseover effects for the block editor" srcset="https://marcosrego.com/wp-content/uploads/2020/09/cookit-marcosrego-opengraph.png 1200w, https://marcosrego.com/wp-content/uploads/2020/09/cookit-marcosrego-opengraph-300x158.png 300w, https://marcosrego.com/wp-content/uploads/2020/09/cookit-marcosrego-opengraph-1024x538.png 1024w, https://marcosrego.com/wp-content/uploads/2020/09/cookit-marcosrego-opengraph-768x403.png 768w" sizes="auto, (max-width: 1200px) 100vw, 1200px" /></figure>



<figure class="     wp-block-image size-large"><img loading="lazy" decoding="async" width="1200" height="630" data-id="1019" src="https://marcosrego.com/wp-content/uploads/2020/09/arhcesmo-marcosrego-opengraph.png" alt="Arhcesmo Opengraph Image" class="wp-image-1019" title="arhcesmo marcosrego opengraph - More than 6 essential mouseover effects for the block editor" srcset="https://marcosrego.com/wp-content/uploads/2020/09/arhcesmo-marcosrego-opengraph.png 1200w, https://marcosrego.com/wp-content/uploads/2020/09/arhcesmo-marcosrego-opengraph-300x158.png 300w, https://marcosrego.com/wp-content/uploads/2020/09/arhcesmo-marcosrego-opengraph-1024x538.png 1024w, https://marcosrego.com/wp-content/uploads/2020/09/arhcesmo-marcosrego-opengraph-768x403.png 768w" sizes="auto, (max-width: 1200px) 100vw, 1200px" /></figure>



<figure class="     wp-block-image size-large"><img loading="lazy" decoding="async" width="1200" height="630" data-id="1020" src="https://marcosrego.com/wp-content/uploads/2020/09/valdorio-marcosrego-opengraph.png" alt="Val do Rio Opengraph Image" class="wp-image-1020" title="valdorio marcosrego opengraph - More than 6 essential mouseover effects for the block editor" srcset="https://marcosrego.com/wp-content/uploads/2020/09/valdorio-marcosrego-opengraph.png 1200w, https://marcosrego.com/wp-content/uploads/2020/09/valdorio-marcosrego-opengraph-300x158.png 300w, https://marcosrego.com/wp-content/uploads/2020/09/valdorio-marcosrego-opengraph-1024x538.png 1024w, https://marcosrego.com/wp-content/uploads/2020/09/valdorio-marcosrego-opengraph-768x403.png 768w" sizes="auto, (max-width: 1200px) 100vw, 1200px" /></figure>



<figure class="     wp-block-image size-large"><img loading="lazy" decoding="async" width="1200" height="630" data-id="1026" src="https://marcosrego.com/wp-content/uploads/2021/06/mrdevframework-marcosrego-opengraph.png" alt="Mr.Dev.&#039;s Framework Opengraph Image" class="wp-image-1026" title="mrdevframework marcosrego opengraph - More than 6 essential mouseover effects for the block editor" srcset="https://marcosrego.com/wp-content/uploads/2021/06/mrdevframework-marcosrego-opengraph.png 1200w, https://marcosrego.com/wp-content/uploads/2021/06/mrdevframework-marcosrego-opengraph-300x158.png 300w, https://marcosrego.com/wp-content/uploads/2021/06/mrdevframework-marcosrego-opengraph-1024x538.png 1024w, https://marcosrego.com/wp-content/uploads/2021/06/mrdevframework-marcosrego-opengraph-768x403.png 768w" sizes="auto, (max-width: 1200px) 100vw, 1200px" /></figure>



<figure class="     wp-block-image size-large"><img loading="lazy" decoding="async" width="1200" height="630" data-id="1027" src="https://marcosrego.com/wp-content/uploads/2021/06/mrdevwidget-marcosrego-opengraph.png" alt="Mr.Dev.&#039;s Widget Opengraph Image" class="wp-image-1027" title="mrdevwidget marcosrego opengraph - More than 6 essential mouseover effects for the block editor" srcset="https://marcosrego.com/wp-content/uploads/2021/06/mrdevwidget-marcosrego-opengraph.png 1200w, https://marcosrego.com/wp-content/uploads/2021/06/mrdevwidget-marcosrego-opengraph-300x158.png 300w, https://marcosrego.com/wp-content/uploads/2021/06/mrdevwidget-marcosrego-opengraph-1024x538.png 1024w, https://marcosrego.com/wp-content/uploads/2021/06/mrdevwidget-marcosrego-opengraph-768x403.png 768w" sizes="auto, (max-width: 1200px) 100vw, 1200px" /></figure>



<figure class="     wp-block-image size-large"><img loading="lazy" decoding="async" width="1200" height="630" data-id="1028" src="https://marcosrego.com/wp-content/uploads/2021/06/mrdevmodule-marcosrego-opengraph.png" alt="Mr.Dev.&#039;s Module Opengraph Image" class="wp-image-1028" title="mrdevmodule marcosrego opengraph - More than 6 essential mouseover effects for the block editor" srcset="https://marcosrego.com/wp-content/uploads/2021/06/mrdevmodule-marcosrego-opengraph.png 1200w, https://marcosrego.com/wp-content/uploads/2021/06/mrdevmodule-marcosrego-opengraph-300x158.png 300w, https://marcosrego.com/wp-content/uploads/2021/06/mrdevmodule-marcosrego-opengraph-1024x538.png 1024w, https://marcosrego.com/wp-content/uploads/2021/06/mrdevmodule-marcosrego-opengraph-768x403.png 768w" sizes="auto, (max-width: 1200px) 100vw, 1200px" /></figure>



<figure class="     wp-block-image size-large"><img loading="lazy" decoding="async" width="1200" height="630" data-id="1029" src="https://marcosrego.com/wp-content/uploads/2021/06/mrutils-marcosrego-opengraph.png" alt="Mr.Utils Opengraph Image" class="wp-image-1029" title="mrutils marcosrego opengraph - More than 6 essential mouseover effects for the block editor" srcset="https://marcosrego.com/wp-content/uploads/2021/06/mrutils-marcosrego-opengraph.png 1200w, https://marcosrego.com/wp-content/uploads/2021/06/mrutils-marcosrego-opengraph-300x158.png 300w, https://marcosrego.com/wp-content/uploads/2021/06/mrutils-marcosrego-opengraph-1024x538.png 1024w, https://marcosrego.com/wp-content/uploads/2021/06/mrutils-marcosrego-opengraph-768x403.png 768w" sizes="auto, (max-width: 1200px) 100vw, 1200px" /></figure>



<figure class="     wp-block-image size-large"><img loading="lazy" decoding="async" width="1200" height="630" data-id="1031" src="https://marcosrego.com/wp-content/uploads/2021/06/editor4roks-marcosrego-opengraph.png" alt="editor4roks Opengraph Image" class="wp-image-1031" title="editor4roks marcosrego opengraph - More than 6 essential mouseover effects for the block editor" srcset="https://marcosrego.com/wp-content/uploads/2021/06/editor4roks-marcosrego-opengraph.png 1200w, https://marcosrego.com/wp-content/uploads/2021/06/editor4roks-marcosrego-opengraph-300x158.png 300w, https://marcosrego.com/wp-content/uploads/2021/06/editor4roks-marcosrego-opengraph-1024x538.png 1024w, https://marcosrego.com/wp-content/uploads/2021/06/editor4roks-marcosrego-opengraph-768x403.png 768w" sizes="auto, (max-width: 1200px) 100vw, 1200px" /></figure>



<figure class="     wp-block-image size-large"><img loading="lazy" decoding="async" width="1200" height="630" data-id="1221" src="https://marcosrego.com/wp-content/uploads/2021/04/giftncraft-marcosrego-opengraph.png" alt="Gift &amp; Craft Opengraph Image" class="wp-image-1221" title="giftncraft marcosrego opengraph - More than 6 essential mouseover effects for the block editor" srcset="https://marcosrego.com/wp-content/uploads/2021/04/giftncraft-marcosrego-opengraph.png 1200w, https://marcosrego.com/wp-content/uploads/2021/04/giftncraft-marcosrego-opengraph-300x158.png 300w, https://marcosrego.com/wp-content/uploads/2021/04/giftncraft-marcosrego-opengraph-1024x538.png 1024w, https://marcosrego.com/wp-content/uploads/2021/04/giftncraft-marcosrego-opengraph-768x403.png 768w" sizes="auto, (max-width: 1200px) 100vw, 1200px" /></figure>



<figure class="     wp-block-image size-large"><img loading="lazy" decoding="async" width="1200" height="630" data-id="1330" src="https://marcosrego.com/wp-content/uploads/2020/11/emergencia-alimentar-marcosrego-site-opengraph.png" alt="Rede de Emergência Alimentar Open Graph Image" class="wp-image-1330" title="emergencia alimentar marcosrego site opengraph - More than 6 essential mouseover effects for the block editor" srcset="https://marcosrego.com/wp-content/uploads/2020/11/emergencia-alimentar-marcosrego-site-opengraph.png 1200w, https://marcosrego.com/wp-content/uploads/2020/11/emergencia-alimentar-marcosrego-site-opengraph-300x158.png 300w, https://marcosrego.com/wp-content/uploads/2020/11/emergencia-alimentar-marcosrego-site-opengraph-1024x538.png 1024w, https://marcosrego.com/wp-content/uploads/2020/11/emergencia-alimentar-marcosrego-site-opengraph-768x403.png 768w" sizes="auto, (max-width: 1200px) 100vw, 1200px" /></figure>



<figure class="     wp-block-image size-large"><img loading="lazy" decoding="async" width="1200" height="630" data-id="1838" src="https://marcosrego.com/wp-content/uploads/2020/09/cascade-marcosrego-site-opengraph.png" alt="Cascade website Opengraph Image" class="wp-image-1838" title="cascade marcosrego site opengraph - More than 6 essential mouseover effects for the block editor" srcset="https://marcosrego.com/wp-content/uploads/2020/09/cascade-marcosrego-site-opengraph.png 1200w, https://marcosrego.com/wp-content/uploads/2020/09/cascade-marcosrego-site-opengraph-300x158.png 300w, https://marcosrego.com/wp-content/uploads/2020/09/cascade-marcosrego-site-opengraph-1024x538.png 1024w, https://marcosrego.com/wp-content/uploads/2020/09/cascade-marcosrego-site-opengraph-768x403.png 768w" sizes="auto, (max-width: 1200px) 100vw, 1200px" /></figure>



<figure class="     wp-block-image size-large"><img loading="lazy" decoding="async" width="1200" height="630" data-id="1813" src="https://marcosrego.com/wp-content/uploads/2021/04/ressanogarciaarquitectos-marcosrego-site-opengraph.png" alt="Ressano Garcia Arquitectos Open Graph Image" class="wp-image-1813" title="ressanogarciaarquitectos marcosrego site opengraph - More than 6 essential mouseover effects for the block editor" srcset="https://marcosrego.com/wp-content/uploads/2021/04/ressanogarciaarquitectos-marcosrego-site-opengraph.png 1200w, https://marcosrego.com/wp-content/uploads/2021/04/ressanogarciaarquitectos-marcosrego-site-opengraph-300x158.png 300w, https://marcosrego.com/wp-content/uploads/2021/04/ressanogarciaarquitectos-marcosrego-site-opengraph-1024x538.png 1024w, https://marcosrego.com/wp-content/uploads/2021/04/ressanogarciaarquitectos-marcosrego-site-opengraph-768x403.png 768w" sizes="auto, (max-width: 1200px) 100vw, 1200px" /></figure>
</figure>



<div style="height:30px" aria-hidden="true" class="  wp-block-spacer"></div>



<p>Those were very basic examples, but with some creativity you can use them to make fascinating and useful experiences for your website users 🙂</p>



<div style="height:50px" aria-hidden="true" class="  wp-block-spacer"></div>



<h2><b>Comments</b></h2>
<div id="disqus_thread"></div>
<script>
if(mrGetCookie('cookielawinfo-checkbox-functional') == 'yes') {
    var disqus_config = function () {
        this.page.url = (location.protocol+'//'+location.host+location.pathname).replace("/account/", "/");
        this.page.identifier = document.querySelector("article").id.replace("post-", "");
    };
    
    (function() {
    var d = document, s = d.createElement('script');
    s.src = 'https://marcosrego-web.disqus.com/embed.js';
    s.setAttribute('data-timestamp', +new Date());
    (d.head || d.body).appendChild(s);
    })();
} else {
    document.querySelector('#disqus_thread').innerHTML = 'You cannot view or add comments because you did not consent to the use of functional cookies: <a class="  cli_manage_current_consent" style="cursor:pointer;">Manage your consent.</a>';
}
</script>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>How to create block patterns in WordPress</title>
		<link>https://marcosrego.com/blog/create-block-patterns/</link>
		
		<dc:creator><![CDATA[Marcos Rego]]></dc:creator>
		<pubDate>Sun, 27 Feb 2022 15:47:54 +0000</pubDate>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Block editor]]></category>
		<category><![CDATA[For clients and authors]]></category>
		<category><![CDATA[For developers]]></category>
		<category><![CDATA[Support]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Wordpress]]></category>
		<guid isPermaLink="false">https://marcosrego.com/?p=2515</guid>

					<description><![CDATA[At the moment of writing, WordPress does not yet give an interface for editors to create block patterns. But that doesn&#8217;t mean it&#8217;s difficult to create them without an interface. On this post, I&#8217;ll guide you on how you can create patterns, and I&#8217;ll try to make it as friendly as possible. Create a block [&#8230;]]]></description>
										<content:encoded><![CDATA[<span id="more-2515"></span>
<!--noteaser-->



<aside class="  wp-block-group sidebar has-main-text-color-color has-aside-background-color-background-color has-text-color has-background"><div class="wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow">
<section class="wp-block-group has-main-text-color-color has-main-background-color-background-color has-text-color has-background"><div class="wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow">
<h3 class="   has-main-text-color-color has-text-color wp-block-heading"><strong>Did you know?</strong></h3>



<figure class="    wp-block-image size-large"><a href="https://marcosrego.com/development/mrdev-framework/"><img loading="lazy" decoding="async" width="1024" height="538" src="https://marcosrego.com/wp-content/uploads/2021/06/mrdevframework-marcosrego-opengraph-1024x538.png" alt="Mr.Dev.&#039;s Framework Opengraph Image" class="wp-image-1026" title="mrdevframework marcosrego opengraph - How to create block patterns in Wordpress" srcset="https://marcosrego.com/wp-content/uploads/2021/06/mrdevframework-marcosrego-opengraph-1024x538.png 1024w, https://marcosrego.com/wp-content/uploads/2021/06/mrdevframework-marcosrego-opengraph-300x158.png 300w, https://marcosrego.com/wp-content/uploads/2021/06/mrdevframework-marcosrego-opengraph-768x403.png 768w, https://marcosrego.com/wp-content/uploads/2021/06/mrdevframework-marcosrego-opengraph.png 1200w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></a></figure>



<p class="  has-main-text-color-color has-text-color">When <strong>Mr.Dev.</strong> sells his <strong>framework</strong>, <strong>one unique payment</strong> gives you <strong>updates forever</strong> and for <strong>unlimited websites</strong>!</p>



<div class="wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex">
<div class="   wp-block-button"><a class="wp-block-button__link has-invert-color-color has-link-color-background-color has-text-color has-background" href="https://marcosrego.com/development/mrdev-framework/"><strong>Know more</strong></a></div>
</div>
</div></section>
</div></aside>



<p>At the moment of writing, WordPress does not yet give an interface for editors to create block patterns. But that doesn&#8217;t mean it&#8217;s difficult to create them without an interface. On this post, I&#8217;ll guide you on how you can create patterns, and I&#8217;ll try to make it as friendly as possible.</p>



<h2 class="wp-block-heading"><strong>Create a block pattern with Mr.Dev.&#8217;s Framework</strong></h2>



<p>Currently, there&#8217;s no graphic user interface to create block patterns. <a href="https://marcosrego.com/development/mrdev-framework/" data-type="post" data-id="403">Mr.Dev.&#8217;s Framework</a> only adds options that WordPress does not have by default, and I&#8217;m expecting WordPress to create that default interface very soon. For that reason, I&#8217;ll not add a specific interface for this functionality<em> (this might change if WordPress takes too much time to do it)</em>.</p>



<p>But if you can&#8217;t wait for that to happen, Mr.Dev.&#8217;s Framework can still help you on the process&#8230;</p>



<h2 class="wp-block-heading"><strong>Preparing a file for a <strong>WordPress</strong></strong> <strong>code snippet</strong></h2>



<h3 class="  wp-block-heading"><strong>Prepare it using Mr.Dev.&#8217;s Framework</strong></h3>



<ul class="wp-block-list">
<li>If you have Mr.Dev.&#8217;s Framework, check if the option to control files is enabled: If you see the tab <em>Files / Media</em> that means it is, if not then you can enable it on the <em>Configuration</em> tab on the <em>Files &amp; Media Manager</em> section.</li>



<li>Go to the <em>Files / Media</em> tab , there you can find the section <em>Server-side scripts</em>. Click on the pencil icon to open the file.<br>This is the file where you&#8217;ll add a <a href="#block_patterns_code_snippet">short code snippet</a>.</li>
</ul>



<p></p>



<div class="wp-block-columns is-layout-flex wp-container-core-columns-is-layout-1 wp-block-columns-is-layout-flex">
<div class="  wp-block-column is-layout-flow wp-block-column-is-layout-flow" style="flex-basis:57%">
<figure class="    wp-block-image size-full"><a href="https://marcosrego.com/wp-content/uploads/2022/02/mrdev-framework-enable-files-control.jpg"><img loading="lazy" decoding="async" width="906" height="313" src="https://marcosrego.com/wp-content/uploads/2022/02/mrdev-framework-enable-files-control.jpg" alt="Mr.Dev.&#039;s Framework - Enable Files Control" class="wp-image-2539" title="mrdev framework enable files control - How to create block patterns in Wordpress" srcset="https://marcosrego.com/wp-content/uploads/2022/02/mrdev-framework-enable-files-control.jpg 906w, https://marcosrego.com/wp-content/uploads/2022/02/mrdev-framework-enable-files-control-300x104.jpg 300w, https://marcosrego.com/wp-content/uploads/2022/02/mrdev-framework-enable-files-control-768x265.jpg 768w" sizes="auto, (max-width: 906px) 100vw, 906px" /></a><figcaption class="wp-element-caption">Mr.Dev.&#8217;s Framework &#8211; Enable Files Control</figcaption></figure>
</div>



<div class="wp-block-column is-layout-flow wp-block-column-is-layout-flow">
<figure class="    wp-block-image size-full"><a href="https://marcosrego.com/wp-content/uploads/2022/02/mrdev-framework-files-control-php.jpg"><img loading="lazy" decoding="async" width="533" height="248" src="https://marcosrego.com/wp-content/uploads/2022/02/mrdev-framework-files-control-php.jpg" alt="Mr.Dev.&#039;s Framework - Adding/editing PHP servser-sides cripts" class="wp-image-2541" title="mrdev framework files control php - How to create block patterns in Wordpress" srcset="https://marcosrego.com/wp-content/uploads/2022/02/mrdev-framework-files-control-php.jpg 533w, https://marcosrego.com/wp-content/uploads/2022/02/mrdev-framework-files-control-php-300x140.jpg 300w" sizes="auto, (max-width: 533px) 100vw, 533px" /></a><figcaption class="wp-element-caption">Mr.Dev.&#8217;s Framework &#8211; Adding/editing PHP servser-sides cripts</figcaption></figure>
</div>
</div>



<h3 class="  wp-block-heading"><strong>Prepare it using a custom PHP file</strong></h3>



<p>If you don&#8217;t have Mr.Dev.&#8217;s Framework and already have a way to add PHP code snippets to your website, you can skip directly to add the <a href="#block_patterns_code_snippet">code snippet</a>.</p>



<p>Otherwise, you can <a href="https://marcosrego.com/development/mrdev-framework/" data-type="post" data-id="403">get the framework</a> or <a href="#block_patterns_code_snippet">add the code</a> into the <em>functions.php</em> file of your theme.</p>



<h2 class="wp-block-heading"><strong>Block patterns code snippet</strong></h2>



<ul class="wp-block-list">
<li>Copy the code snippet below and paste it into the file you previously created/selected. Do not save yet because we still need to create the actual pattern.</li>
</ul>



<pre class="mr-fontsize2  wp-block-code mr-fontsize2"><code>//START BLOCK PATTERNS
function custom_site_init() {
	register_block_pattern_category(
		'custom-site',
		array( 'label' =&gt; get_bloginfo() )
	);
	
	register_block_pattern(
		'custom-site/project-list',
		array(
			'title'       =&gt; __( 'Pattern 1', 'custom-site' ),
			'description' =&gt; _x( '', 'Block pattern description', 'custom-site' ),
			'keywords' =&gt; &#91;'pattern'],
			'categories' =&gt; &#91;'custom-site'],
			'content'     =&gt; 'PATTERN CONTENT',
		)
	); 
}
add_action( 'init', 'custom_site_init' );
//END BLOCK PATTERNS</code></pre>



<h3 class="  wp-block-heading"><strong>Understanding the code</strong> (optional)</h3>



<p>The code above can be reused on as many websites as you want.</p>



<p>It will automatically create a pattern&#8217;s category with the same name as the website using <em>get_bloginfo()</em> <em>(behind the scenes the slug will be &#8220;custom-site&#8221;, and although you can change that, it is more scalable this way)</em>.</p>



<p>The pattern name will be &#8220;Pattern 1&#8221;, this part you can change to whatever you want, depending on the project or the actual pattern.</p>



<p>You can also add a pattern description and add/replace keywords <em>(The keywords are utilized when a user is using the search input to find blocks)</em>.</p>



<figure class="  wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-2 is-layout-flex wp-block-gallery-is-layout-flex">
<figure class="     wp-block-image size-large"><img loading="lazy" decoding="async" width="1717" height="756" data-id="2540" src="https://marcosrego.com/wp-content/uploads/2022/02/create-block-patterns-01.jpg" alt="Code snippet to create block patterns" class="wp-image-2540" title="create block patterns 01 - How to create block patterns in Wordpress" srcset="https://marcosrego.com/wp-content/uploads/2022/02/create-block-patterns-01.jpg 1717w, https://marcosrego.com/wp-content/uploads/2022/02/create-block-patterns-01-300x132.jpg 300w, https://marcosrego.com/wp-content/uploads/2022/02/create-block-patterns-01-1024x451.jpg 1024w, https://marcosrego.com/wp-content/uploads/2022/02/create-block-patterns-01-768x338.jpg 768w, https://marcosrego.com/wp-content/uploads/2022/02/create-block-patterns-01-1536x676.jpg 1536w" sizes="auto, (max-width: 1717px) 100vw, 1717px" /><figcaption class="wp-element-caption">Code snippet to create block patterns</figcaption></figure>
</figure>



<h2 class="wp-block-heading"><strong>Create the block pattern with the editor</strong></h2>



<p>Now that we have prepared the code snippet, we can use the block editor to create the content for the pattern.</p>



<ul class="wp-block-list">
<li>On a different tab, go to <em>Pages &gt; Add New</em>.</li>



<li>Create the content for the patterns, using any type of blocks you want.</li>



<li>In the top right corner, click on the 3 dots.</li>



<li>Click on &#8220;Copy all content&#8221;.</li>



<li>Go back to the PHP file you previously created/selected.</li>



<li>Replace <em>PATTERN CONTENT</em> with the content you just copied.</li>



<li>Save the file.</li>
</ul>



<p></p>



<div class="wp-block-columns is-layout-flex wp-container-core-columns-is-layout-2 wp-block-columns-is-layout-flex">
<div class="  wp-block-column is-layout-flow wp-block-column-is-layout-flow" style="flex-basis:50%">
<figure class="  wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-3 is-layout-flex wp-block-gallery-is-layout-flex">
<figure class="    wp-block-image size-large"><img loading="lazy" decoding="async" width="337" height="677" src="https://marcosrego.com/wp-content/uploads/2022/02/block-editor-copy-all-content.png" alt="Block editor - Copy all content - Option location" class="wp-image-2546" title="block editor copy all content - How to create block patterns in Wordpress" srcset="https://marcosrego.com/wp-content/uploads/2022/02/block-editor-copy-all-content.png 337w, https://marcosrego.com/wp-content/uploads/2022/02/block-editor-copy-all-content-149x300.png 149w" sizes="auto, (max-width: 337px) 100vw, 337px" /><figcaption class="wp-element-caption">Block editor &#8211; Copy all content &#8211; Option location</figcaption></figure>
</figure>
</div>
</div>



<h2 class="wp-block-heading"><strong>Add more block patterns</strong></h2>



<p>To create multiple block patterns, duplicate the function <em>register_block_pattern</em> from the code snippet above and repeat the same steps.</p>



<h2 class="wp-block-heading"><strong>Extra: Remove core block patterns from WordPress</strong></h2>



<p>Now that you added your own custom patterns, chances are you don&#8217;t want to show the default/core block patterns. </p>



<p>To do that, if you have Mr.Dev.&#8217;s Framework, you can simply enable <em>Styles Control</em> on the <em>Configuration tab</em>. Otherwise, you can add the following code on the previous code snippet, inside the main <em>custom_site_init</em> function:</p>



<pre class="mr-fontsize2  wp-block-code mr-fontsize2"><code>remove_theme_support( 'core-block-patterns' );</code></pre>



<h2 class="wp-block-heading"><strong>Will block patterns be on the interface?</strong></h2>



<p>Hopefully WordPress will soon add a good way to do this via the full site editor. There are some interesting discussions on which will be the best way, you can follow them:</p>



<ul class="wp-block-list">
<li><a href="https://github.com/WordPress/gutenberg/issues/31298" target="_blank" rel="noreferrer noopener">Patterns: Create a pattern similarly to how we create a Reusable block. · Issue #31298 · WordPress/Gutenberg (github.com)</a></li>



<li><a href="https://github.com/WordPress/gutenberg/issues/35305" target="_blank" rel="noopener">Selecting multiple blocks &#8211; Save as Pattern or Reusable block. · Issue #35305 · WordPress/gutenberg (github.com)</a></li>



<li><a href="https://github.com/WordPress/gutenberg/issues/38529" target="_blank" rel="noopener">Building with Patterns · Issue #38529 · WordPress/gutenberg (github.com)</a></li>
</ul>



<p>And that&#8217;s it! I hope the steps were clear and easy to follow. If not, feel free to comment below or <a href="https://marcosrego.com/client-area/contact/" data-type="post" data-id="678">contact me</a> if you prefer to talk about it privately.</p>



<h2><b>Comments</b></h2>
<div id="disqus_thread"></div>
<script>
if(mrGetCookie('cookielawinfo-checkbox-functional') == 'yes') {
    var disqus_config = function () {
        this.page.url = (location.protocol+'//'+location.host+location.pathname).replace("/account/", "/");
        this.page.identifier = document.querySelector("article").id.replace("post-", "");
    };
    
    (function() {
    var d = document, s = d.createElement('script');
    s.src = 'https://marcosrego-web.disqus.com/embed.js';
    s.setAttribute('data-timestamp', +new Date());
    (d.head || d.body).appendChild(s);
    })();
} else {
    document.querySelector('#disqus_thread').innerHTML = 'You cannot view or add comments because you did not consent to the use of functional cookies: <a class="  cli_manage_current_consent" style="cursor:pointer;">Manage your consent.</a>';
}
</script>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Get 5 official block editor features with any theme</title>
		<link>https://marcosrego.com/blog/block-editor-features-theme/</link>
		
		<dc:creator><![CDATA[Marcos Rego]]></dc:creator>
		<pubDate>Mon, 01 Nov 2021 10:00:00 +0000</pubDate>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Block editor]]></category>
		<category><![CDATA[For developers]]></category>
		<category><![CDATA[Mr.Dev.'s Framework]]></category>
		<category><![CDATA[Support]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Wordpress]]></category>
		<guid isPermaLink="false">https://marcosrego.com/?p=2106</guid>

					<description><![CDATA[The block editor (aka Gutenberg) is the default site builder of WordPress but some handy features might be hidden, waiting for your theme to declare support. Which block editor features can be enabled? Features such as creation of block templates, responsive embeds, wide alignments for images, custom line-heights and custom spacing usually must be enabled [&#8230;]]]></description>
										<content:encoded><![CDATA[<span id="more-2106"></span>
<!--noteaser-->



<p class="">The block editor (aka Gutenberg) is the default site builder of WordPress but some handy features might be hidden, waiting for your theme to declare support.</p>



<h2 class="wp-block-heading"><strong>Which block editor features can be enabled?</strong></h2>



<p class="">Features such as <strong>creation of block templates, responsive embeds, wide alignments for images, custom line-heights and custom spacing</strong> usually must be enabled by <a href="https://developer.wordpress.org/block-editor/how-to-guides/themes/theme-support/" target="_blank" data-type="URL" data-id="https://developer.wordpress.org/block-editor/how-to-guides/themes/theme-support/" rel="noreferrer noopener">adding some code snippets into your theme</a>.</p>



<p class="">But what if you don&#8217;t have control over your theme code? What if you want to always have those features despite the theme you use?</p>



<p class="">Since the version 0.9.492 of <a href="https://marcosrego.com/development/mrdev-framework/" data-type="post" data-id="403">Mr.Dev.&#8217;s Framework</a>, that you can enable all those features without touching any code.</p>



<aside class="  wp-block-group sidebar has-main-text-color-color has-aside-background-color-background-color has-text-color has-background"><div class="wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow">
<section class="wp-block-group has-main-text-color-color has-main-background-color-background-color has-text-color has-background"><div class="wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow">
<h3 class="   has-main-text-color-color has-text-color wp-block-heading"><strong>Did you know?</strong></h3>



<figure class="    wp-block-image size-large"><a href="https://marcosrego.com/development/mrdev-framework/"><img loading="lazy" decoding="async" width="1024" height="538" src="https://marcosrego.com/wp-content/uploads/2021/06/mrdevframework-marcosrego-opengraph-1024x538.png" alt="Mr.Dev.&#039;s Framework Opengraph Image" class="wp-image-1026" title="mrdevframework marcosrego opengraph - Get 5 official block editor features with any theme" srcset="https://marcosrego.com/wp-content/uploads/2021/06/mrdevframework-marcosrego-opengraph-1024x538.png 1024w, https://marcosrego.com/wp-content/uploads/2021/06/mrdevframework-marcosrego-opengraph-300x158.png 300w, https://marcosrego.com/wp-content/uploads/2021/06/mrdevframework-marcosrego-opengraph-768x403.png 768w, https://marcosrego.com/wp-content/uploads/2021/06/mrdevframework-marcosrego-opengraph.png 1200w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></a></figure>



<p class="  has-main-text-color-color has-text-color">When <strong>Mr.Dev.</strong> sells his <strong>framework</strong>, <strong>one unique payment</strong> gives you <strong>updates forever</strong> and for <strong>unlimited websites</strong>!</p>



<div class="wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex">
<div class="   wp-block-button"><a class="wp-block-button__link has-invert-color-color has-link-color-background-color has-text-color has-background" href="https://marcosrego.com/development/mrdev-framework/"><strong>Know more</strong></a></div>
</div>
</div></section>
</div></aside>



<h2 class="wp-block-heading"><strong>How to get those block editor features?</strong></h2>



<p class="">On the <strong>Configuration tab</strong> of <strong><a href="https://marcosrego.com/development/mrdev-framework/" data-type="post" data-id="403">Mr.Dev.&#8217;s Framework</a></strong>, located in <strong>Settings > Mr.Dev.</strong> <em>(Instead of Mr.Dev. you might see your site name, depending of the whitelabel configuration)</em>, you can find the section <strong>Styles Configuration</strong> with the dropdown <strong>Blocks Styles Picker</strong> and also the section <strong>Layout configuration</strong> with the dropdown <strong>Layout Control</strong>.</p>



<figure class="  wp-block-gallery columns-1 is-cropped wp-block-gallery-4 is-layout-flex wp-block-gallery-is-layout-flex"><ul class="blocks-gallery-grid"><li class="blocks-gallery-item"><figure><a href="https://marcosrego.com/wp-content/uploads/2021/10/mrdev-framework-block-features.png"><img loading="lazy" decoding="async" width="1008" height="611" src="https://marcosrego.com/wp-content/uploads/2021/10/mrdev-framework-block-features.png" alt="Mr.Dev.&#039;s Framework - Block Features" data-id="2137" data-full-url="https://marcosrego.com/wp-content/uploads/2021/10/mrdev-framework-block-features.png" data-link="https://marcosrego.com/blog/block-editor-features-theme/attachment/mrdev-framework-block-features/" class="wp-image-2137" title="mrdev framework block features - Get 5 official block editor features with any theme" srcset="https://marcosrego.com/wp-content/uploads/2021/10/mrdev-framework-block-features.png 1008w, https://marcosrego.com/wp-content/uploads/2021/10/mrdev-framework-block-features-300x182.png 300w, https://marcosrego.com/wp-content/uploads/2021/10/mrdev-framework-block-features-768x466.png 768w" sizes="auto, (max-width: 1008px) 100vw, 1008px" /></a><figcaption class="blocks-gallery-item__caption">Block Styles Picker also allows to enable extra features of the block editor (aka Gutenberg).<br>(Screenshot taken on October 2021)</figcaption></figure></li></ul></figure>



<p class="">Depending of the option you choose on those dropdowns, different features will be enabled:</p>



<h3 class="  wp-block-heading"><strong>Block templates</strong></h3>



<p class="">If your theme already enables block templates, you can leave the dropdown <strong>Layout Control</strong> with the option &#8220;Disabled / Theme Controlled&#8221;, otherwise you can select &#8220;Enable block templates (Recommended)&#8221;.</p>



<p class="">You&#8217;ll also need to have WordPress 5.8 or above. </p>



<p class="">The <strong>Block templates</strong> feature, allows to add blocks inside template parts such as header and footer. All changes you do on a block inside a template part will apply to all pages using that template.</p>



<div class="wp-block-columns is-layout-flex wp-container-core-columns-is-layout-3 wp-block-columns-is-layout-flex">
<div class=" mr-phone-hide  wp-block-column mr-phone-hide is-layout-flow wp-block-column-is-layout-flow" style="flex-basis:16%">
<figure class="    wp-block-image size-full"><img loading="lazy" decoding="async" width="298" height="688" src="https://marcosrego.com/wp-content/uploads/2021/10/block-editor-template-option.png" alt="block editor template option - Get 5 official block editor features with any theme" class="wp-image-2145" title="block editor template option - Get 5 official block editor features with any theme" srcset="https://marcosrego.com/wp-content/uploads/2021/10/block-editor-template-option.png 298w, https://marcosrego.com/wp-content/uploads/2021/10/block-editor-template-option-130x300.png 130w" sizes="auto, (max-width: 298px) 100vw, 298px" /></figure>
</div>



<div class="  wp-block-column is-layout-flow wp-block-column-is-layout-flow" style="flex-basis:78%">
<figure class="    wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="482" src="https://marcosrego.com/wp-content/uploads/2021/10/block-editor-template-editor-1024x482.png" alt="Block editor template editor" class="wp-image-2146" title="block editor template editor - Get 5 official block editor features with any theme" srcset="https://marcosrego.com/wp-content/uploads/2021/10/block-editor-template-editor-1024x482.png 1024w, https://marcosrego.com/wp-content/uploads/2021/10/block-editor-template-editor-300x141.png 300w, https://marcosrego.com/wp-content/uploads/2021/10/block-editor-template-editor-768x362.png 768w, https://marcosrego.com/wp-content/uploads/2021/10/block-editor-template-editor-1536x724.png 1536w, https://marcosrego.com/wp-content/uploads/2021/10/block-editor-template-editor.png 1908w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>
</div>
</div>



<div style="height:20px" aria-hidden="true" class="  wp-block-spacer"></div>



<h3 class="  wp-block-heading"><strong>Responsive embeds</strong></h3>



<p class="">This block editor feature will be enabled if you select one of this options:</p>



<ul class="wp-block-list"><li><strong>Disabled but with extra block features</strong> &#8211; It will not show the colors and sizes created using the framework (or the customizer) inside the block editor.</li><li><strong>Enabled with extra block features and allow custom styles</strong></li><li><strong>Enabled with extra block features</strong></li></ul>



<p class="">The <strong>Responsive embeds</strong> feature, automatically applies styles to embedded content to reflect the aspect ratio of content that is embedded in an iFrame, using the class <em>wp-embed-responsive</em> on the &lt;body&gt;.</p>



<div style="height:20px" aria-hidden="true" class="  wp-block-spacer"></div>



<h3 class="  wp-block-heading"><strong>Wide Alignment</strong></h3>



<p class="">This block editor feature will be enabled if you select one of this options:</p>



<ul class="wp-block-list"><li><strong>Disabled but with extra block features</strong> &#8211; It will not show the colors and sizes created using the framework (or the customizer) inside the block editor.</li><li><strong>Enabled with extra block features and allow custom styles</strong></li><li><strong>Enabled with extra block features</strong></li></ul>



<p class="">The <strong>Wide Alignment </strong>feature, gives the possibility of defining &#8220;wide&#8221; and &#8220;full&#8221; alignments to certain blocks, such as the image block.</p>



<figure class="    wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="578" src="https://marcosrego.com/wp-content/uploads/2021/10/block-editor-wide-alignment-1024x578.png" alt="Block editor wide alignment" class="wp-image-2152" title="block editor wide alignment - Get 5 official block editor features with any theme" srcset="https://marcosrego.com/wp-content/uploads/2021/10/block-editor-wide-alignment-1024x578.png 1024w, https://marcosrego.com/wp-content/uploads/2021/10/block-editor-wide-alignment-300x169.png 300w, https://marcosrego.com/wp-content/uploads/2021/10/block-editor-wide-alignment-768x433.png 768w, https://marcosrego.com/wp-content/uploads/2021/10/block-editor-wide-alignment.png 1453w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<div style="height:20px" aria-hidden="true" class="  wp-block-spacer"></div>



<h3 class="  wp-block-heading"><strong>Custom Line-Height</strong></h3>



<p class="">This block editor feature will be enabled if you select one of this options:</p>



<ul class="wp-block-list"><li><strong style="color: var(--main-text-color) ; font-family: var(--text-font, &quot;Arial,Helvetica Neue,Helvetica&quot;); background-color: var(--main-background-color, #dfdfd0);">Enabled with extra block features and allow custom styles</strong></li><li><strong><strong>Enabled and allow custom styles per block</strong></strong></li></ul>



<p class="">The <strong>Custom Line-Height</strong> feature, allows to customize the line height of certain blocks, such as the paragraph and headings.</p>



<figure class="    wp-block-image size-full"><img loading="lazy" decoding="async" width="776" height="280" src="https://marcosrego.com/wp-content/uploads/2021/10/block-editor-paragraph-line-height.png" alt="Block editor paragraph line-height" class="wp-image-2153" title="block editor paragraph line height - Get 5 official block editor features with any theme" srcset="https://marcosrego.com/wp-content/uploads/2021/10/block-editor-paragraph-line-height.png 776w, https://marcosrego.com/wp-content/uploads/2021/10/block-editor-paragraph-line-height-300x108.png 300w, https://marcosrego.com/wp-content/uploads/2021/10/block-editor-paragraph-line-height-768x277.png 768w" sizes="auto, (max-width: 776px) 100vw, 776px" /></figure>



<div style="height:20px" aria-hidden="true" class="  wp-block-spacer"></div>



<h3 class="  wp-block-heading"><strong>Custom Spacing</strong></h3>



<p class="">This block editor feature will be enabled if you select one of this options:</p>



<ul class="wp-block-list"><li><strong style="color: var(--main-text-color) ; font-family: var(--text-font, &quot;Arial,Helvetica Neue,Helvetica&quot;); background-color: var(--main-background-color, #dfdfd0);">Enabled with extra block features and allow custom styles</strong></li><li><strong><strong>Enabled and allow custom styles per block</strong></strong></li></ul>



<p class="">The <strong>Custom Spacing</strong> feature, will show padding controls in certain blocks, such as the column block. You can change the value for individual sides or keep the same for all sides.</p>



<figure class="    wp-block-image size-full"><img loading="lazy" decoding="async" width="774" height="599" src="https://marcosrego.com/wp-content/uploads/2021/10/block-editor-padding-spacing.png" alt="Block editor padding spacing" class="wp-image-2156" title="block editor padding spacing - Get 5 official block editor features with any theme" srcset="https://marcosrego.com/wp-content/uploads/2021/10/block-editor-padding-spacing.png 774w, https://marcosrego.com/wp-content/uploads/2021/10/block-editor-padding-spacing-300x232.png 300w, https://marcosrego.com/wp-content/uploads/2021/10/block-editor-padding-spacing-768x594.png 768w" sizes="auto, (max-width: 774px) 100vw, 774px" /></figure>



<div style="height:20px" aria-hidden="true" class="  wp-block-spacer"></div>



<p class=""><strong><span style="color: var(--main-text-color) ; font-family: var(--text-font, &quot;Arial,Helvetica Neue,Helvetica&quot;); background-color: var(--main-background-color, #dfdfd0);">And the </span><em>Enabled</em><span style="color: var(--main-text-color) ; font-family: var(--text-font, &quot;Arial,Helvetica Neue,Helvetica&quot;); background-color: var(--main-background-color, #dfdfd0);"> option on the dropdown?</span></strong></p>



<p class="">It&#8217;s not part of this post&#8217;s topic, but if you prefer to let your theme/plugins decide most of the available features, but still want to show the colors and sizes created using the framework (or the customizer) on the block editor, then that option is for you.</p>



<div style="height:20px" aria-hidden="true" class="  wp-block-spacer"></div>



<h2 class="wp-block-heading"><strong>Getting Mr.Dev.&#8217;s Framework</strong></h2>



<p class="">If this easy method to enable block editor features despite the theme sounds good to you, but you don&#8217;t have this framework yet, then you can know more about it and get it anytime:</p>



<div class="wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex">
<div class="   wp-block-button"><a class="wp-block-button__link has-invert-color-color has-link-color-background-color has-text-color has-background" href="https://marcosrego.com/client-area/downloads/?product=mrdevs-framework">Get it now</a></div>



<div class="   wp-block-button"><a class="wp-block-button__link has-main-background-color-color has-main-text-color-background-color has-text-color has-background" href="https://marcosrego.com/development/mrdev-framework/">Know more</a></div>
</div>



<div style="height:20px" aria-hidden="true" class="  wp-block-spacer"></div>



<h2><b>Comments</b></h2>
<div id="disqus_thread"></div>
<script>
if(mrGetCookie('cookielawinfo-checkbox-functional') == 'yes') {
    var disqus_config = function () {
        this.page.url = (location.protocol+'//'+location.host+location.pathname).replace("/account/", "/");
        this.page.identifier = document.querySelector("article").id.replace("post-", "");
    };
    
    (function() {
    var d = document, s = d.createElement('script');
    s.src = 'https://marcosrego-web.disqus.com/embed.js';
    s.setAttribute('data-timestamp', +new Date());
    (d.head || d.body).appendChild(s);
    })();
} else {
    document.querySelector('#disqus_thread').innerHTML = 'You cannot view or add comments because you did not consent to the use of functional cookies: <a class="  cli_manage_current_consent" style="cursor:pointer;">Manage your consent.</a>';
}
</script>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Mr.Utils enhances the block editor with 8 extra features</title>
		<link>https://marcosrego.com/blog/mr-utils-block-editor-features/</link>
		
		<dc:creator><![CDATA[Marcos Rego]]></dc:creator>
		<pubDate>Wed, 13 Oct 2021 23:11:57 +0000</pubDate>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Block editor]]></category>
		<category><![CDATA[For clients and authors]]></category>
		<category><![CDATA[For developers]]></category>
		<category><![CDATA[Mr.Utils]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Wordpress]]></category>
		<guid isPermaLink="false">https://marcosrego.com/?p=1997</guid>

					<description><![CDATA[On this post, I&#8217;ll guide you on how to use my front-end toolkit Mr.Utils, to scale and get features on the block editor of WordPress. As explained on the previous post, a front-end toolkit might be the best future-proof and optimized solution to this site builder that is still growing. Depending of your website and [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class=""> On this post, I&#8217;ll guide you on how to use my front-end toolkit <strong><a href="https://marcosrego.com/development/mr-utils/" data-type="post" data-id="473">Mr.Utils</a></strong>, to scale and get features on the block editor of <a href="https://marcosrego.com/tag/wordpress/" data-type="post_tag" data-id="23">WordPress</a>.</p>



<span id="more-1997"></span>



<p class="">As explained on the <a href="https://marcosrego.com/blog/solve-block-editor-toolkit/" data-type="post" data-id="1878">previous post</a>, a front-end toolkit might be the best future-proof and optimized solution to this site builder that is still growing.</p>



<p class="">Depending of your website and theme configuration, you might already be able to use the editor to change things such as the font-size, margins and paddings. But those changes would be made on each block individually, there&#8217;s currently at the moment of writing, no way to change those properties globally. <strong>Mr.Utils</strong> gives you a way to do that.</p>



<aside class="  wp-block-group sidebar has-main-text-color-color has-aside-background-color-background-color has-text-color has-background"><div class="wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow">
<section class="wp-block-group has-main-text-color-color has-main-background-color-background-color has-text-color has-background"><div class="wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow">
<h3 class="   has-main-text-color-color has-text-color wp-block-heading"><strong>Did you know?</strong></h3>



<figure class="    wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="538" src="https://marcosrego.com/wp-content/uploads/2021/06/mrutils-marcosrego-opengraph-1024x538.png" alt="Mr.Utils Opengraph Image" class="wp-image-1029" title="mrutils marcosrego opengraph - Mr.Utils enhances the block editor with 8 extra features" srcset="https://marcosrego.com/wp-content/uploads/2021/06/mrutils-marcosrego-opengraph-1024x538.png 1024w, https://marcosrego.com/wp-content/uploads/2021/06/mrutils-marcosrego-opengraph-300x158.png 300w, https://marcosrego.com/wp-content/uploads/2021/06/mrutils-marcosrego-opengraph-768x403.png 768w, https://marcosrego.com/wp-content/uploads/2021/06/mrutils-marcosrego-opengraph.png 1200w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="  has-main-text-color-color has-text-color"><strong><a href="https://marcosrego.com/development/mr-utils/" data-type="post" data-id="473">Mr.Utils</a></strong> gives you a set of classes with a clear syntax, such as <em><strong>mr-phone-hide</strong></em> clearly saying to hide an element on a phone, <strong><em>mr-marginright</em></strong> to add a margin on the right side of an element and <strong><a rel="noreferrer noopener" href="https://github.com/marcosrego-web/mr-utils/wiki/Utility-Classes" data-type="URL" data-id="https://github.com/marcosrego-web/mr-utils/wiki/Utility-Classes" target="_blank">so much more</a></strong>&#8230;</p>



<div class="wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex">
<div class="   wp-block-button"><a class="wp-block-button__link has-invert-color-color has-link-color-background-color has-text-color has-background" href="https://marcosrego.com/client-area/downloads/?product=mrutils"><strong>Get it now (free)</strong></a></div>
</div>
</div></section>
</div></aside>



<h2 class="wp-block-heading"><strong>Installing Mr.Utils to use on the block editor</strong></h2>



<p class="">On  the<strong> <a href="https://github.com/marcosrego-web/mr-utils/wiki#installation" target="_blank" rel="noreferrer noopener">documentation</a></strong> you&#8217;ll find a short and easy explanation on three methods to install <a href="https://marcosrego.com/development/mr-utils/" data-type="post" data-id="473">Mr.Utils</a>, by using Mr.Dev.&#8217;s Framework, by installing as a plugin or via manual installation. The most optimized method is using the framework because it allows you to select the type of utilities you want to use, combine and minify them.</p>



<p class=""></p>



<h3 class="  wp-block-heading"><strong>Preview Mr.Utils changes on the block editor (Optional)</strong></h3>



<p class="">Because the block editor is a very visual editor that closely resembles the front-end, you might want to see the changes that Mr.Utils will apply to your blocks, before actually saving the post.</p>



<p class="">If you did the installation as a plugin you don&#8217;t need to do anything else and you can skip to &#8220;<em><a href="#how_to_use_mrutils_features_on_the_block_editor">How to use Mr.Utils features on the block editor</a></em>&#8220;.</p>



<p class="">Otherwise, you can configure it easily by using <a href="https://marcosrego.com/development/mrdev-framework/" data-type="post" data-id="403">Mr.Dev.&#8217;s Framework</a>, or manually if that&#8217;s your thing.</p>



<div style="height:15px" aria-hidden="true" class="  wp-block-spacer"></div>



<h4 class="  wp-block-heading"><strong>Preview changes using Mr.Dev.&#8217;s Framework</strong></h4>



<p class="">On the plugin settings on the configuration tab, you will find the <em>CSS Utilities</em> section. Check the box <strong>Utils Backend</strong>, and you are ready to go.</p>



<p class="">If you want to use utilities on breakpoints, simply select the ones you want on the same group of checkboxes.</p>



<div style="height:15px" aria-hidden="true" class="  wp-block-spacer"></div>



<h4 class="  wp-block-heading"><strong>Manually configuration of the preview</strong></h4>



<p class="">Add the below code into the functions.php file or into a custom plugin.</p>



<pre class="wp-block-code"><code>add_action( 'admin_enqueue_scripts', 'mrutils_admin_styles' );
function mrutils_admin_styles() {
    wp_enqueue_style( 'mrutils_admin', 'https://raw.githubusercontent.com/marcosrego-web/mr-utils/master/css/utils.css', false, '1.0.0' );
    wp_enqueue_style( 'mrutils_admin_backend', 'https://raw.githubusercontent.com/marcosrego-web/mr-utils/master/css/utils_backend.css', false, '1.0.0' );
}</code></pre>



<p class="">If you want to add breakpoints you need to add more &#8220;wp_enqueue_style&#8221; to the above, between the first and last one, this time also indicating the intended media query, like this:</p>



<pre class="wp-block-code"><code>wp_enqueue_style( 'mrutils_admin_phone', 'https://raw.githubusercontent.com/marcosrego-web/mr-utils/master/css/utils_phone.css', false, '1.0.0','(max-width: 768px)' );</code></pre>



<p class="">If you want to avoid external requests:</p>



<ol class="  wp-block-list"><li><a href="https://marcosrego.com/client-area/downloads/?product=mrutils">Download Mr.Utils <em>(free)</em></a> </li><li>Unzip into your website. </li><li>Replace the link on the code above, with the location where you unzipped the folder.</li></ol>



<p class=""></p>



<h2 class="wp-block-heading"><strong>How to use Mr.Utils features on the block editor</strong></h2>



<p class="">If you installed Mr.Utils as a plugin, you&#8217;ll now see the option &#8220;Utilities&#8221; when selecting a block. By using that interface you don&#8217;t need to know the methods explained below.</p>



<figure class="    wp-block-gallery aligncenter has-nested-images columns-default is-cropped wp-block-gallery-5 is-layout-flex wp-block-gallery-is-layout-flex">
<figure class="     wp-block-image size-full"><a href="https://marcosrego.com/wp-content/uploads/2021/10/banner-772x250-1.png"><img loading="lazy" decoding="async" width="772" height="250" data-id="2289" src="https://marcosrego.com/wp-content/uploads/2021/10/banner-772x250-1.png" alt="Mr.Utils options on WordPress block editor" class="wp-image-2289" title="banner 772x250 1 - Mr.Utils enhances the block editor with 8 extra features" srcset="https://marcosrego.com/wp-content/uploads/2021/10/banner-772x250-1.png 772w, https://marcosrego.com/wp-content/uploads/2021/10/banner-772x250-1-300x97.png 300w, https://marcosrego.com/wp-content/uploads/2021/10/banner-772x250-1-768x249.png 768w" sizes="auto, (max-width: 772px) 100vw, 772px" /></a><figcaption>Mr.Utils options on WordPress block editor</figcaption></figure>
</figure>



<p class="">If you didn&#8217;t install Mr.Utils as a plugin, most of the methods shown below, will work by adding specific classes into <strong>Advanced > Additional CSS Class(es)</strong> on any block:</p>



<figure class="    wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="538" src="https://marcosrego.com/wp-content/uploads/2021/09/block-editor-with-frontedn-toolkit-1024x538.png" alt="Block editor with frontend toolkit" class="wp-image-1946" title="block editor with frontedn toolkit - Mr.Utils enhances the block editor with 8 extra features" srcset="https://marcosrego.com/wp-content/uploads/2021/09/block-editor-with-frontedn-toolkit-1024x538.png 1024w, https://marcosrego.com/wp-content/uploads/2021/09/block-editor-with-frontedn-toolkit-300x158.png 300w, https://marcosrego.com/wp-content/uploads/2021/09/block-editor-with-frontedn-toolkit-768x403.png 768w, https://marcosrego.com/wp-content/uploads/2021/09/block-editor-with-frontedn-toolkit.png 1200w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<h3 class="  wp-block-heading"><strong>Global font-sizes</strong></h3>



<p class="">With Mr.Utils you have <strong>7 global font-sizes</strong> and it&#8217;s <strong>possible to change</strong> their values.</p>



<p class="">For example, add the class <strong>mr-fontsize5</strong> into <strong>Advanced &gt; Additional CSS Class(es)</strong> on any block that has text and see it changing sizes.</p>



<p class="">You can also use different sizes depending of the device/breakpoint joining multiple classes, for example:<br><strong>mr-fontsize5 mr-phone-fontsize4</strong><br><strong>mr-desktop-fontsize7 mr-tablet-fontsize5 mr-phone-fontsize6</strong></p>



<p class="">If you want to change the values for the 7 sizes, you can <a href="https://github.com/marcosrego-web/mr-utils/wiki/Variables#how-to-do" target="_blank" data-type="URL" data-id="https://github.com/marcosrego-web/mr-utils/wiki/Variables#how-to-do" rel="noreferrer noopener"><strong>check the documentation explaining how to change variables</strong></a>. It explains how to do it manually or using the Mr.Dev.&#8217;s Framework.</p>



<h3 class="  wp-block-heading"><strong>Global colors</strong> (Mr.Dev.&#8217;s Framework)</h3>



<p class="">For this one feature, Mr.Utils is currently not enough, you&#8217;ll want to use Mr.Dev.&#8217;s Framework to define which will be the global colors that appear on the block editor.</p>



<p class="">Being a global color means that if you select a color and then decide to change the value, all blocks using it will automatically have their colors changed to the new value.</p>



<figure class="  wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-6 is-layout-flex wp-block-gallery-is-layout-flex">
<figure class="     wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="693" data-id="958" src="https://marcosrego.com/wp-content/uploads/2021/06/mrdev-framework_styles-1024x693.jpg" alt="Mr.Dev.&#039;s Framework - Styles" class="wp-image-958" title="mrdev framework styles - Mr.Utils enhances the block editor with 8 extra features" srcset="https://marcosrego.com/wp-content/uploads/2021/06/mrdev-framework_styles-1024x693.jpg 1024w, https://marcosrego.com/wp-content/uploads/2021/06/mrdev-framework_styles-300x203.jpg 300w, https://marcosrego.com/wp-content/uploads/2021/06/mrdev-framework_styles-768x520.jpg 768w, https://marcosrego.com/wp-content/uploads/2021/06/mrdev-framework_styles.jpg 1342w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /><figcaption>Use the plugin settings, or optionally use the customizer and block editor, to add global colors, typography, sizes and breakpoints.</figcaption></figure>
</figure>



<h3 class="  wp-block-heading"><strong>Remove margins and paddings of blocks</strong></h3>



<p class="">Removing margins and paddings can be very useful because currently at the moment of writing, some blocks have default margins or paddings that you might not want. It&#8217;s much easier to add a class instead of changing via CSS.</p>



<p class="">With Mr.Utils you can choose the side you want to remove the margin/padding or remove on all sides. Simply add the correspondent class into <strong>Advanced &gt; Additional CSS Class(es</strong>):</p>



<figure class="wp-block-table"><table><tbody><tr><td>mr-nomargin</td><td>mr-nopadding</td></tr><tr><td>mr-nomargintop</td><td>mr-nopaddingtop</td></tr><tr><td> mr-nomarginright</td><td> mr-nopaddingright</td></tr><tr><td> mr-nomarginbottom</td><td> mr-nopaddingbottom</td></tr><tr><td> mr-nomarginleft</td><td> mr-nopaddingleft</td></tr></tbody></table></figure>



<p class="">And you can also remove the margin/padding only on specific devices/breakpoints, for example:</p>



<p class=""><strong>mr-desktop-nomargin<br>mr-phone-nopaddingright</strong></p>



<h3 class="  wp-block-heading"><strong>Add global margins and paddings</strong></h3>



<p class="">Mr.Utils brings the classes <strong>mr-margin</strong> and <strong>mr-padding</strong>, that can also point to specific sides of the block:</p>



<figure class="wp-block-table"><table><tbody><tr><td>mr-margin</td><td>mr-padding</td></tr><tr><td>mr-margintop</td><td>mr-paddingtop</td></tr><tr><td> mr-marginright</td><td> mr-paddingright</td></tr><tr><td> mr-marginbottom</td><td> mr-paddingbottom</td></tr><tr><td> mr-marginleft</td><td> mr-paddingleft</td></tr></tbody></table></figure>



<p class="">And you can also use the margin/padding only on specific devices/breakpoints, for example:</p>



<p class=""><strong>mr-desktop-margin<br>mr-phone-paddingright</strong></p>



<p class="">If you want to change the values for the global margins and paddings, you can <a href="https://github.com/marcosrego-web/mr-utils/wiki/Variables#how-to-do" data-type="URL" data-id="https://github.com/marcosrego-web/mr-utils/wiki/Variables#how-to-do" target="_blank" rel="noreferrer noopener"><strong>check the documentation explaining how to change variables</strong></a>. It explains how to do it manually <strong>or using the Mr.Dev.&#8217;s Framework</strong>.</p>



<h3 class="  wp-block-heading"><strong>Change visibility of a block depending of the device</strong></h3>



<p class="">To show or hide a block, you can use the classes <strong>mr-show</strong> and <strong>mr-hide</strong> respectively.</p>



<p class="">To point to specific devices/breakpoints, all you have to do is to add the device name between the prefix and action. Here are some examples:</p>



<figure class="  wp-block-table is-style-regular"><table><tbody><tr><td class="has-text-align-left" data-align="left">Show on phone only:</td><td><strong>mr-hide mr-phone-show</strong></td></tr><tr><td class="has-text-align-left" data-align="left">Hide on phone:</td><td><strong>mr-phone-hide</strong></td></tr><tr><td class="has-text-align-left" data-align="left">Show on portrait devices:</td><td><strong>mr-landscape-hide</strong></td></tr><tr><td class="has-text-align-left" data-align="left">Hide on desktop and laptop:</td><td><strong>mr-desktop-hide mr-laptop-hide</strong></td></tr></tbody></table></figure>



<figure class="    wp-block-image size-large"><a href="https://marcosrego.com/websites/itemzero/"><img loading="lazy" decoding="async" width="1024" height="538" src="https://marcosrego.com/wp-content/uploads/2021/04/marcosrego-itemzero-open-graph-1024x538.png" alt="Itemzero Open Graph Image" class="wp-image-1012" title="marcosrego itemzero open graph - Mr.Utils enhances the block editor with 8 extra features" srcset="https://marcosrego.com/wp-content/uploads/2021/04/marcosrego-itemzero-open-graph-1024x538.png 1024w, https://marcosrego.com/wp-content/uploads/2021/04/marcosrego-itemzero-open-graph-300x158.png 300w, https://marcosrego.com/wp-content/uploads/2021/04/marcosrego-itemzero-open-graph-768x403.png 768w, https://marcosrego.com/wp-content/uploads/2021/04/marcosrego-itemzero-open-graph.png 1200w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></a><figcaption> The <a href="https://marcosrego.com/websites/itemzero/" data-type="post" data-id="1">Itemzero Shop</a> has some good examples of showing content depending of the device/breakpoint using <a href="https://marcosrego.com/development/mr-utils/" data-type="post" data-id="473">Mr.Utils</a>. </figcaption></figure>



<h3 class="  wp-block-heading"><strong>Change how Columns blocks display on mobile</strong></h3>



<p class="">By default when you set the number of columns on the Columns block, that number will apply on desktop. On mobile the columns will be automatically stacked below each other.</p>



<p class="">But if you only have images or you don&#8217;t have a lot of text in the columns, it could look better with 2 columns on each line.</p>



<p class="">You can do that with Mr.Utils, you can add classes such as <strong>mr-phone-2perline</strong> into <strong>Advanced &gt; Additional Class(es)</strong>.</p>



<p class="">If you installed the toolkit as a plugin it&#8217;s even more friendly: Click on &#8220;Utilities&#8221;, on the phone icon and then on layout you choose 2 as the number of items per line.</p>



<p class=""></p>



<h3 class="  wp-block-heading"><strong>Change the order of blocks depending of the device</strong></h3>



<p class="">Changing the order of blocks is easy with drag and drop but if you want to change the order depending of the device/breakpoint, you&#8217;ll need something more:</p>



<ol class="  wp-block-list"><li><strong>Select all the blocks that will be reordered</strong> and then select the option &#8220;<strong>Group</strong>&#8220;.</li><li>On the <strong>Group Block</strong> go to <strong>Advanced &gt; Additional CSS Class(es)</strong> and add the class <strong>mr-1perline</strong> (You can replace 1 with any number between 0 [infinite] and 12, this would be similar to using columns).</li><li>Then select the first block you want to reorder and on <strong>Advanced &gt; Additional CSS Class(es)</strong> section, add the class <strong>mr-<em>breakpoint</em>-order</strong> followed by a number between -1 and 12 and replacing <em>breakpoint</em> with the device name (desktop, laptop, tablet, phone or another custom breakpoint that exists). Example: <strong>mr-phone-order2</strong>. Do the same for each block inside the group (Repeated numbers are allowed).</li></ol>



<p class=""></p>



<h3 class="  wp-block-heading"><strong>Horizontal scroll list of posts</strong></h3>



<p class="">Using the block &#8220;Latest Posts&#8221;, or any other block that works as a list, you can add the class <strong>mr-swipecontent</strong> or <strong>mr-horizontalscrollcontent</strong> into <strong style="color: var(--main-text-color) ; font-family: var(--text-font, &quot;Arial,Helvetica Neue,Helvetica&quot;); font-size: revert; background-color: var(--main-background-color, #dfdfd0);">Advanced &gt; Additional CSS Class(es)</strong>, to make that list flow horizontally and become scrollable when the amount of items is big.</p>



<figure class="    wp-block-image size-large"><a href="https://marcosrego.com/websites/ressanogarcia/"><img loading="lazy" decoding="async" width="1024" height="538" src="https://marcosrego.com/wp-content/uploads/2021/04/ressanogarciaarquitectos-marcosrego-site-opengraph-1024x538.png" alt="Ressano Garcia Arquitectos Open Graph Image" class="wp-image-1813" title="ressanogarciaarquitectos marcosrego site opengraph - Mr.Utils enhances the block editor with 8 extra features" srcset="https://marcosrego.com/wp-content/uploads/2021/04/ressanogarciaarquitectos-marcosrego-site-opengraph-1024x538.png 1024w, https://marcosrego.com/wp-content/uploads/2021/04/ressanogarciaarquitectos-marcosrego-site-opengraph-300x158.png 300w, https://marcosrego.com/wp-content/uploads/2021/04/ressanogarciaarquitectos-marcosrego-site-opengraph-768x403.png 768w, https://marcosrego.com/wp-content/uploads/2021/04/ressanogarciaarquitectos-marcosrego-site-opengraph.png 1200w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></a><figcaption>The website <strong><a href="https://marcosrego.com/websites/ressanogarcia/">Ressano Garcia Arquitectos</a></strong> is a good example of horizontal scrolling lists of posts using <a href="https://marcosrego.com/development/mr-utils/" data-type="post" data-id="473">Mr.Utils</a>.</figcaption></figure>



<div style="height:15px" aria-hidden="true" class="  wp-block-spacer"></div>



<p class=""><strong>Those are the 8 features I wanted to share with you!</strong> I&#8217;ll update this post If I add more into <a href="https://marcosrego.com/development/mr-utils/" data-type="post" data-id="473">this front-end toolkit</a>.</p>



<h2><b>Comments</b></h2>
<div id="disqus_thread"></div>
<script>
if(mrGetCookie('cookielawinfo-checkbox-functional') == 'yes') {
    var disqus_config = function () {
        this.page.url = (location.protocol+'//'+location.host+location.pathname).replace("/account/", "/");
        this.page.identifier = document.querySelector("article").id.replace("post-", "");
    };
    
    (function() {
    var d = document, s = d.createElement('script');
    s.src = 'https://marcosrego-web.disqus.com/embed.js';
    s.setAttribute('data-timestamp', +new Date());
    (d.head || d.body).appendChild(s);
    })();
} else {
    document.querySelector('#disqus_thread').innerHTML = 'You cannot view or add comments because you did not consent to the use of functional cookies: <a class="  cli_manage_current_consent" style="cursor:pointer;">Manage your consent.</a>';
}
</script>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>The block editor with a front-end toolkit is still advised in 2021</title>
		<link>https://marcosrego.com/blog/solve-block-editor-toolkit/</link>
		
		<dc:creator><![CDATA[Marcos Rego]]></dc:creator>
		<pubDate>Wed, 29 Sep 2021 19:01:35 +0000</pubDate>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Block editor]]></category>
		<category><![CDATA[For developers]]></category>
		<category><![CDATA[Mr.Utils]]></category>
		<category><![CDATA[Wordpress]]></category>
		<guid isPermaLink="false">https://marcosrego.com/?p=1878</guid>

					<description><![CDATA[The block editor (aka Gutenberg) is the default site builder of WordPress and it&#8217;s the most optimized and performative you can have on this CMS. But it&#8217;s still growing and currently lacking some features. On this post, I&#8217;ll let you know why a front-end toolkit is currently the best future-proof solution to get some of [&#8230;]]]></description>
										<content:encoded><![CDATA[<span id="more-1878"></span>
<!--noteaser-->



<p class="">The block editor (aka Gutenberg) is the default site builder of WordPress and it&#8217;s the most optimized and performative you can have on this CMS. But it&#8217;s still growing and currently lacking some features.</p>



<p class="">On this post, I&#8217;ll let you know why a front-end toolkit is currently the best future-proof solution to get some of those lacking features right now.</p>



<aside class="  wp-block-group sidebar has-main-text-color-color has-aside-background-color-background-color has-text-color has-background"><div class="wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow">
<section class="wp-block-group has-main-text-color-color has-main-background-color-background-color has-text-color has-background"><div class="wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow">
<h3 class="   has-main-text-color-color has-text-color wp-block-heading"><strong>Did you know?</strong></h3>



<figure class="    wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="538" src="https://marcosrego.com/wp-content/uploads/2021/06/mrutils-marcosrego-opengraph-1024x538.png" alt="Mr.Utils Opengraph Image" class="wp-image-1029" title="mrutils marcosrego opengraph - The block editor with a front-end toolkit is still advised in 2021" srcset="https://marcosrego.com/wp-content/uploads/2021/06/mrutils-marcosrego-opengraph-1024x538.png 1024w, https://marcosrego.com/wp-content/uploads/2021/06/mrutils-marcosrego-opengraph-300x158.png 300w, https://marcosrego.com/wp-content/uploads/2021/06/mrutils-marcosrego-opengraph-768x403.png 768w, https://marcosrego.com/wp-content/uploads/2021/06/mrutils-marcosrego-opengraph.png 1200w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="  has-main-text-color-color has-text-color"><strong><a href="https://marcosrego.com/development/mr-utils/" data-type="post" data-id="473">Mr.Utils</a></strong> gives you a set of classes with a clear syntax, such as <em><strong>mr-phone-hide</strong></em> clearly saying to hide an element on a phone, <strong><em>mr-marginright</em></strong> to add a margin on the right side of an element and <strong><a rel="noreferrer noopener" href="https://github.com/marcosrego-web/mr-utils/wiki/Utility-Classes" data-type="URL" data-id="https://github.com/marcosrego-web/mr-utils/wiki/Utility-Classes" target="_blank">so much more</a></strong>&#8230;</p>



<div class="wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex">
<div class="   wp-block-button"><a class="wp-block-button__link has-invert-color-color has-link-color-background-color has-text-color has-background" href="https://marcosrego.com/client-area/downloads/?product=mrutils"><strong>Get it now (free)</strong></a></div>
</div>
</div></section>
</div></aside>



<h2 class="wp-block-heading"><strong>Some features might be hidden to you</strong></h2>



<p class="">Before I dive into the use of a front-end toolkit to add some of the lacking features, it&#8217;s best to make sure that they are actually lacking from the block editor.</p>



<p class="">Your theme or plugins might lock some of the new features and in some cases your theme could simply declare support with a short code snippet.</p>



<p class=""><a href="https://developer.wordpress.org/block-editor/how-to-guides/themes/theme-support/" target="_blank" data-type="URL" data-id="https://developer.wordpress.org/block-editor/how-to-guides/themes/theme-support/" rel="noreferrer noopener">On this page of the WordPress documentation</a>, you can find some of the features that are available but need the theme or <a href="https://marcosrego.com/blog/block-editor-features-theme/" data-type="post" data-id="2106">a plugin to declare support</a>.</p>



<p class="">If all the features you need are mentioned on that page, then <a href="https://marcosrego.com/blog/block-editor-features-theme/" data-type="post" data-id="2106">declaring support is in fact the best option</a> (You can use <a href="https://marcosrego.com/development/mrdev-framework/" data-type="post" data-id="403">Mr.Dev.&#8217;s Framework</a> to do that). If they are not, then you might find a better solution by continue to read this post.</p>



<figure class="  wp-block-gallery columns-1 is-cropped wp-block-gallery-7 is-layout-flex wp-block-gallery-is-layout-flex"><ul class="blocks-gallery-grid"><li class="blocks-gallery-item"><figure><a href="https://marcosrego.com/wp-content/uploads/2021/09/block-editor-hidden-features.jpg"><img loading="lazy" decoding="async" width="1024" height="437" src="https://marcosrego.com/wp-content/uploads/2021/09/block-editor-hidden-features-1024x437.jpg" alt="block editor hidden features - The block editor with a front-end toolkit is still advised in 2021" data-id="1949" data-full-url="https://marcosrego.com/wp-content/uploads/2021/09/block-editor-hidden-features.jpg" data-link="https://marcosrego.com/?attachment_id=1949" class="wp-image-1949" title="block editor hidden features - The block editor with a front-end toolkit is still advised in 2021" srcset="https://marcosrego.com/wp-content/uploads/2021/09/block-editor-hidden-features-1024x437.jpg 1024w, https://marcosrego.com/wp-content/uploads/2021/09/block-editor-hidden-features-300x128.jpg 300w, https://marcosrego.com/wp-content/uploads/2021/09/block-editor-hidden-features-768x328.jpg 768w, https://marcosrego.com/wp-content/uploads/2021/09/block-editor-hidden-features.jpg 1200w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></a><figcaption class="blocks-gallery-item__caption">Some block editor features might be hidden, such as patterns, and individual paddings, font-sizes, line-height and gradients.</figcaption></figure></li></ul></figure>



<p class=""></p>



<h2 class="wp-block-heading"><strong>You should not use plugins to extend the block editor</strong></h2>



<p class="">The easiest solution for the lacking features would be of course, to get them via a third-party plugin, <strong>but that doesn&#8217;t mean it&#8217;s the best or the most scalable option.</strong></p>



<p class="">Plugins such <a href="https://wordpress.org/plugins/editorplus/" target="_blank" data-type="URL" data-id="https://wordpress.org/plugins/editorplus/" rel="noreferrer noopener">Editor Plus by Extendify</a>, <a href="https://wordpress.org/plugins/kadence-blocks/" target="_blank" data-type="URL" data-id="https://wordpress.org/plugins/kadence-blocks/" rel="noreferrer noopener">Kadence Blocks</a>, <a href="https://wordpress.org/plugins/lazy-blocks/" target="_blank" data-type="URL" data-id="https://wordpress.org/plugins/lazy-blocks/" rel="noreferrer noopener">Lazy Blocks</a> and <a href="https://www.advancedcustomfields.com/resources/blocks/" target="_blank" data-type="URL" data-id="https://www.advancedcustomfields.com/resources/blocks/" rel="noreferrer noopener">ACF Blocks</a> are impressive for sure but a quick look at their changelogs and you&#8217;ll notice they are bloated with features or dependencies that you might not need or that will soon be available by default on the block editor.</p>



<p class="">That leaves a question with difficult answers:<br><strong>What will happen when those new features arrive to WordPress?</strong><br>Will the plugin developers find a way to transfer all the repeated features to the methods of Gutenberg Block Editor? Or will they force everyone to keep the plugin active so their own features keep working?<br>The latter is more likely and would force to have multiple ways to do the exact same things.</p>



<figure class="   wp-block-gallery columns-1 is-cropped wp-block-gallery-8 is-layout-flex wp-block-gallery-is-layout-flex"><ul class="blocks-gallery-grid"><li class="blocks-gallery-item"><figure><a href="https://marcosrego.com/wp-content/uploads/2021/09/block-editor-plugins-repeated-features.jpg"><img loading="lazy" decoding="async" width="1005" height="763" src="https://marcosrego.com/wp-content/uploads/2021/09/block-editor-plugins-repeated-features.jpg" alt="Block editor plugins repeated features" data-id="1953" data-full-url="https://marcosrego.com/wp-content/uploads/2021/09/block-editor-plugins-repeated-features.jpg" data-link="https://marcosrego.com/?attachment_id=1953" class="wp-image-1953" title="block editor plugins repeated features - The block editor with a front-end toolkit is still advised in 2021" srcset="https://marcosrego.com/wp-content/uploads/2021/09/block-editor-plugins-repeated-features.jpg 1005w, https://marcosrego.com/wp-content/uploads/2021/09/block-editor-plugins-repeated-features-300x228.jpg 300w, https://marcosrego.com/wp-content/uploads/2021/09/block-editor-plugins-repeated-features-768x583.jpg 768w" sizes="auto, (max-width: 1005px) 100vw, 1005px" /></a><figcaption class="blocks-gallery-item__caption">An example of the block editor adding a center alignment while an extra plugin adds a left alignment.</figcaption></figure></li></ul></figure>



<p class="">Doesn&#8217;t sound serious yet? What if I tell you that, having so many active options and plugins to do the same things will increase the amount of needed scripts, styles on your pages, <strong>decreasing your speed score</strong> that also affects SEO (Search Engine Optimization).</p>



<p class="">Another things to keep in mind are:</p>



<ul class="wp-block-list"><li>Some of those plugins also <strong>change the natural workflow of the editor</strong>: It&#8217;s difficult enough to force users to get used to a new way of working on their websites, imagine having multiple ways.<br>And I know WordPress always had that problem, but now that WordPress is trying to fix that with the block editor, it seems to me some of those plugins are not doing much better for the long-run.</li><li>Some of those plugins are <strong>based on old technologies and do requests to the server</strong>. The essence of the native blocks is the <strong>use of React and to do more on the client-side</strong>, that&#8217;s what makes the native blocks so well optimized compared to other site builders.</li></ul>



<p class="">Don&#8217;t you agree? Let me know in the comments section below.</p>



<p class="">If still you prefer to go with a plugin, choose one that lets you <strong>go back to the default values</strong> and/or that <strong>helps you transition back,</strong> when you don&#8217;t want to rely on that plugin anymore.</p>



<p class=""></p>



<h2 class="wp-block-heading"><strong>What you need on the block editor for now is a middle term solution!</strong></h2>



<h3 class="  wp-block-heading"><strong>Using a front-end toolkit</strong></h3>



<p class="">Get a lightweight and easy to use front-end toolkit, such as <strong><a href="https://marcosrego.com/development/mr-utils/">Mr.Utils</a></strong> (free). It includes classes that are friendly for everyone and can be added on each block &#8220;Advanced&#8221; section.</p>



<p class="">And if that&#8217;s not friendly enough for you or your clients, you can actually install Mr.Utils as a plugin for free. It adds an interface on the block editor that allows to add classes without actually knowing them. But of course, this starts to get closer to the plugins mentioned above, still lighter than them though!</p>



<h3 class="  wp-block-heading"><strong>Using a lightweight framework</strong></h3>



<p class="">Or get a lightweight framework such as <strong><a href="https://marcosrego.com/development/mrdev-framework/">Mr.Dev.&#8217;s Framework</a></strong>, that focus on new features, discontinues the repeated ones <em>(that are already available on the CMS)</em> and even helps you on the transition to the CMS method/feature.</p>



<p class="">The framework also has the option to use an interface on the block editor.</p>



<h3 class="  wp-block-heading"><strong>Solutions overview</strong></h3>



<p class="">Mr.Utils front-end toolkit, Mr.Utils as a plugin and Mr.Dev&#8217;s Framework are much lighter compared to the plugins mentioned above and much easier to scale and transition to future methods.</p>



<div class="wp-block-columns is-layout-flex wp-container-core-columns-is-layout-4 wp-block-columns-is-layout-flex">
<div class="wp-block-column is-layout-flow wp-block-column-is-layout-flow">
<figure class="  wp-block-video"><video controls muted poster="https://marcosrego.com/wp-content/uploads/2021/06/mrutils-marcosrego-opengraph.png" preload="none" src="https://marcosrego.com/wp-content/uploads/2021/06/mrutils_desktop.mp4" playsinline></video><figcaption>Video showing Mr.Utils classes and un-minified code for all breakpoints (on August 2021)</figcaption></figure>
</div>



<div class="wp-block-column is-layout-flow wp-block-column-is-layout-flow">
<figure class="  wp-block-video"><video controls muted poster="https://marcosrego.com/wp-content/uploads/2021/06/mrdevframework-marcosrego-opengraph.png" preload="none" src="https://marcosrego.com/wp-content/uploads/2021/06/mrdev-framework_desktop.mp4" playsinline></video><figcaption>Video showing the available options on Mr.Dev.&#8217;s Framework (on August 2021)</figcaption></figure>
</div>
</div>



<h3 class="  wp-block-heading"><strong>What about other front-end toolkits?</strong></h3>



<p class="">Of course you can use other, specially if you already have another installed on your website.<br><a href="https://getbootstrap.com/" target="_blank" data-type="URL" data-id="https://getbootstrap.com/" rel="noreferrer noopener">Bootstrap</a> probably comes to mind, but I feel my <a href="https://github.com/marcosrego-web/mr-utils/wiki/Utility-Classes" target="_blank" data-type="URL" data-id="https://github.com/marcosrego-web/mr-utils/wiki/Utility-Classes" rel="noreferrer noopener">utility classes</a> are a bit more straightforward and more friendly to explain to non-tech users. They always work the same way <em>prefix-breakpoint-action</em>, such as <em>mr-phone-hide</em> or <em>mr-desktop-nomargin</em> <em>(mr-nomargin for actions on all breakpoints)</em>.</p>



<p class=""></p>



<h2 class="wp-block-heading"><strong>Getting 8 of the lacking features on the block editor</strong></h2>



<p class="">What Mr.Utils / Mr.Dev.&#8217;s Framework add to the block editor is a way to: </p>



<ol class="  wp-block-list"><li><strong>Change to a global font-size.</strong></li><li><strong>Change global color.</strong></li><li><strong>Remove margins and paddings of blocks.</strong></li><li><strong>Add global margins and paddings.</strong></li><li><strong>Change visibility of a block depending of the device.</strong></li><li><strong>Change how Columns blocks display on mobile</strong></li><li><strong>Change order of blocks depending of the device.</strong></li><li><strong>Horizontal scroll list of posts.</strong></li></ol>



<p class=""><a href="https://marcosrego.com/blog/mr-utils-block-editor-features/" data-type="post" data-id="1997"><strong>Check the next post</strong></a> where I go deeper on how to do those <em>actions</em>.</p>



<h2><b>Comments</b></h2>
<div id="disqus_thread"></div>
<script>
if(mrGetCookie('cookielawinfo-checkbox-functional') == 'yes') {
    var disqus_config = function () {
        this.page.url = (location.protocol+'//'+location.host+location.pathname).replace("/account/", "/");
        this.page.identifier = document.querySelector("article").id.replace("post-", "");
    };
    
    (function() {
    var d = document, s = d.createElement('script');
    s.src = 'https://marcosrego-web.disqus.com/embed.js';
    s.setAttribute('data-timestamp', +new Date());
    (d.head || d.body).appendChild(s);
    })();
} else {
    document.querySelector('#disqus_thread').innerHTML = 'You cannot view or add comments because you did not consent to the use of functional cookies: <a class="  cli_manage_current_consent" style="cursor:pointer;">Manage your consent.</a>';
}
</script>
]]></content:encoded>
					
		
		<enclosure url="https://marcosrego.com/wp-content/uploads/2021/06/mrutils_desktop.mp4" length="6043294" type="video/mp4" />
<enclosure url="https://marcosrego.com/wp-content/uploads/2021/06/mrdev-framework_desktop.mp4" length="2424924" type="video/mp4" />

			</item>
		<item>
		<title>FlipBook Block</title>
		<link>https://marcosrego.com/development/flipbook-block/</link>
		
		<dc:creator><![CDATA[Marcos Rego]]></dc:creator>
		<pubDate>Fri, 20 Aug 2021 00:00:00 +0000</pubDate>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Block editor]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[FlipBook]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Plugin]]></category>
		<category><![CDATA[React]]></category>
		<category><![CDATA[Wordpress]]></category>
		<guid isPermaLink="false">https://marcosrego.com/?p=2905</guid>

					<description><![CDATA[Let your visitors turn the pages! FlipBook Block is a simple yet effective WordPress block that shows a PDF from your Media in a Flip Book.]]></description>
										<content:encoded><![CDATA[<span id="more-2905"></span>
<!--noteaser-->



<figure class=" fixed-video_mobile mr-fadein  wp-block-video fixed-video_mobile mr-fadein"><video autoplay loop muted preload="none" src="https://marcosrego.com/wp-content/uploads/2023/01/flipbook-block_phone.mp4" playsinline></video></figure>



<figure class=" fixed-video_desktop mr-fadein  wp-block-video fixed-video_desktop mr-fadein"><video autoplay loop muted preload="none" src="https://marcosrego.com/wp-content/uploads/2023/01/flipbook-block_desktop.mp4" playsinline></video></figure>



<h2 class="wp-block-heading" id="mr-dev-is-your-provider-of-developing-tools"><strong>Let your visitors turn the pages!</strong></h2>



<h3 class="  wp-block-heading" id="he-gives-you-a-powerful-wordpress-widget-to-display-your-content-with-many-customizable-layouts-and-options">FlipBook Block is a simple yet effective WordPress block that shows a PDF from your Media in a Flip Book.</h3>



<div class="wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex">
<div class="   wp-block-button"><a class="wp-block-button__link has-invert-color-color has-link-color-background-color has-text-color has-background wp-element-button" href="https://marcosrego.com/client-area/downloads/?product=flipbook-block"><strong>Get it now (free)</strong></a></div>
</div>
]]></content:encoded>
					
		
		<enclosure url="https://marcosrego.com/wp-content/uploads/2023/01/flipbook-block_phone.mp4" length="1268494" type="video/mp4" />
<enclosure url="https://marcosrego.com/wp-content/uploads/2023/01/flipbook-block_desktop.mp4" length="231121" type="video/mp4" />

			</item>
	</channel>
</rss>
