How to customize the global style of Gutenberg blocks using Essential Blocks

If you would like to add a new function to a WordPress site's Gutenberg blocksProviding consistent customization styles, Essential Blocks plugin will be a very useful tool. It makes it easy to configure global style settings without having to customize them from scratch every time, making website design more uniform and efficient. In this article, I will show you how to set global styles and apply them to Gutenberg blocks with the Essential Blocks plugin.

图片[1]-如何使用Essential Blocks自定义Gutenberg块的全局样式

Introduction of Essential Blocks Plugin

Essential Blocks PluginDeveloped by WPDeveloper and designed for the Gutenberg editor, Essential Blocks provides a rich set of block elements to help users easily create a variety of layouts and designs. Whether you are a beginner or a professional developer, Essential Blocks will make you feel easy to use and make your website content richer and more attractive.

The plugin contains several highly customizable block elements such as Info Box, Price Table, Progress Bar, Image Gallery, etc. Users can easily add these elements to a page or post to enhance the page visualization and interactive experience. With intuitive drag-and-drop operations, Essential Blocks allows you to complete complex page designs in minutes without writing code.

图片[2]-如何使用Essential Blocks自定义Gutenberg块的全局样式

1. Configure the Essential Blocks global style settings.

Need to configure global styling for Essential Blocks plugin, these settings below will help you apply consistent styling across multiple pages and posts on your website, saving time and improving user experience.

Step 1: Open a blank page

In the WordPress dashboard, create a new blank page. We will configure the global style settings for the Essential Blocks plugin on this page.

图片[3]-如何使用Essential Blocks自定义Gutenberg块的全局样式

Step 2: Enter Essential Blocks Settings

  • In the upper right corner of the page editor, click the Essential Blocks Icons.
图片[4]-如何使用Essential Blocks自定义Gutenberg块的全局样式
  • Scroll down and select Block Default Menu, go to the Global Style Settings option.
图片[5]-如何使用Essential Blocks自定义Gutenberg块的全局样式

Step 3: Setting the style of the Info Box block

  • In the global style settings, select Info Box(infobox) block. Click on the Info Box, a settings window will pop up.
图片[6]-如何使用Essential Blocks自定义Gutenberg块的全局样式

Multiple style options will be seen, which can be adjusted as required:

图片[7]-如何使用Essential Blocks自定义Gutenberg块的全局样式
  • Clickable settings: You can choose whether or not to make the infobox a clickable item.
  • Button Setting: The buttons can be retained or deleted, and the style of the buttons can be adjusted at the same time.
  • content alignment: in Alignment option allows you to set the position of the content in the message box.
  • Media Style: Select the appropriate infobox icon and customize its color.
  • Title Style: in Title Style Set the color of the title in and select the desired font.
  • Subtitle style: By Content Style, you can set the color and font style of the subtitle.
  • Button Style: Sets the color for the button text.
  • Background settings: Adjust the background color of the infobox and set the appropriate Margin respond in singing Padding (inner margins)The
图片[8]-如何使用Essential Blocks自定义Gutenberg块的全局样式

Once you have completed all the customizations, click Save(Save) button to save the current style settings.

2. Using custom blocks in the Gutenberg editor

Once set up, the custom style will be applied to all Essential Blocks blocks. Next, we'll show you how to apply this custom style to the Gutenberg Page Editor.

Step 1: Adding an Infobox Block to the Gutenberg Editor

  • Open the Gutenberg editor and click on the location where you want to insert the infobox + Button.
图片[9]-如何使用Essential Blocks自定义Gutenberg块的全局样式
  • Type in the search box Info BoxSelect the customized style of the Info Box BlockThe
图片[10]-如何使用Essential Blocks自定义Gutenberg块的全局样式
  • The customized infobox block will be immediately inserted into the page and display the set style.
图片[11]-如何使用Essential Blocks自定义Gutenberg块的全局样式

Step 2: Further customization and saving

If you wish to further customize the block, you can do so via the Gutenberg editor sidebar. Modify the text, colors, or other styles as needed.

图片[12]-如何使用Essential Blocks自定义Gutenberg块的全局样式

After completing all changes, click Save(Save) button to ensure that all settings have been saved and applied.

图片[13]-如何使用Essential Blocks自定义Gutenberg块的全局样式

3. Advantages of global styles

Global styles set with Essential Blocks not only help you maintain consistency throughout your site, they also save you the time of having to reset styles every time you make an edit. Each time you insert a customized Essential Blocks block into a page or post, the global styles you've configured are automatically applied, maintaining a consistent design.

concluding remarks

With the tutorial in this article, you have learned how to set and apply global styles using the Essential Blocks plugin. Whether it's customizing Gutenberg blocks or reusing styles from page to page, it's easy to manage and optimize the look of your WordPress website. Hopefully, these tips will help you improve the efficiency of your website's design and ensure consistent styling on every page.

For more WordPress related tutorials and information, please follow thePhoton fluctuation network, has the most comprehensive WordPress tutorials and the most activeWordPress Exchange CommunityThe


Contact Us
Can't read the tutorial? Contact us for a free answer! Free help for personal, small business sites!
客服微信
Customer Service
Tel: 020-2206-9892
QQ咨询:1025174874
(iii) E-mail: [email protected]
Working hours: Monday to Friday, 9:30-18:30, holidays off
© Reprint statement
本文作者:托尼屎大颗
THE END
If you like it, support it.
kudos12 share (joys, benefits, privileges etc) with others
commentaries sofa-buying

Please log in to post a comment

    No comments