Friday , November 22 2024
Home > Magento Tips & News > Magento 2 Tutorials > Content > Magento Page Builder: All About the Block Content Type

Magento Page Builder: All About the Block Content Type

magento page builder block content type featured image

You may have heard about the Block content type when learning the Magento Page Builder and known that it is used to add an existing, active block. This block can contain fixed information such as text, images, embedded video, etc. and dynamic information as well. On the other hand, it helps you easily manage various elements on your web pages. The Block content type is not complicated, so if you’re a Magento store owner and want to learn more about it, this article is for you.

Where Is the Magento Page Builder Block Content Type Located? 

In the Magento Page Builder workspace, you can find the Block content type in the Page Builder panel, under the Add Content section. 

block content type location

Introduce the Block Toolbox

When you hover over the block container, you’ll see a toolbox appear as below: 

block content type toolbox
ToolIconDescription
MoveChanges the position of the block container within the stage.
SettingsAccesses the Edit Block page to select the block and modify its container.
HideMakes the current block container temporarily invisible.
ShowMakes the hidden block container visible.
DuplicateDuplicates the block container and its content. 
RemoveDeletes the block container. 

Try FREE Magezon Page Builder demo today

Easily create beautiful, engaging Magento website in any style whenever you want without relying on developers or designers. Just by drag & drop.

How to Add a Block in Magento Page Builder?

After expanding the Add Content section, drag the Block placeholder to the stage and drop it. You can watch the video below to better understand. 

You may also like: Magento Page Builder: All About the Products Content Type

Do you recognize anything? That’s right, with other content types, I first added the Row, Column, or Tabs to the stage but in this case, I didn’t do it. 

Now, look at the image below.

block content type add row vs no row

Number one is the block container itself, and number two is the block in a contained row. Do you notice the difference? If there isn’t a row, the block will only appear in full-bleed. If there is, you can change how the block container appears according to how you set the row. 

In short, with the Block content type, adding a row, column or tab beforehand isn’t compulsory.

How to Change Block Settings?

Hover over the block container to display the Settings () icon and choose it.

Select Block

  1. After accessing the settings page, pay attention to the first section. This is where you select a block to display on the block container. 
  2. Click Select Block. 
block content type choose a block
  1. The Select Block page will appear for you to choose from. Find the block you need and click Select. 
block content type select a block
  1. The button after that will turn into text Selected to show that you have successfully chosen a block. 
  2. Click the exit icon () to close the select page and return to the edit page. 
  3. The name of the chosen block will appear.
block content type chosen block
  1. If you want to change the block, click Select Block again and choose another block, then click Select

As I have chosen the Sale Left Menu Block, below is how the block appears: 

block content type sale left menu

Advanced Settings

Similar to the previous content types, the Block’s advanced settings section also includes 

  1. Alignment settings: 
block content type alignment setting
DefaultApplies the alignment default setting which is given in the current theme’s style sheet. 
LeftPlaces the content along the block container’s left border, allowing for any padding that is provided. 
CenterPlaces the content in the center of the block container, allowing for any padding that is provided. 
RightPlaces the content along the block container’s right border, allowing for any padding that is provided. 
  1. Border settings: 
    1. Border style
block content type border style

As you can see, there are nine different styles for the borderline for you to choose from, which are: 

DefaultApplies the associated style sheet’s default border style, as defined. 
NoneHides the borderline. 
DottedDisplays the borderline as a dotted line. 
DashedDisplays the borderline as a dashed line. 
SolidDisplays the borderline as a solid line. 
DoubleDisplays the borderline as a double line. 
GrooveDisplays the borderline as a groove line. 
RidgeDisplays the borderline as a ridge line. 
InsetDisplays the borderline as an inset line. 
OutsetDisplays the borderline as an outset line. 

If you don’t choose None for the border style then you can change the border’s color and width. The border’s radius is changeable no matter what style you chose. 

  1. Border color
block content type border color

You can change the border color by 

  • Choosing a swatch.
  • Clicking the color picker.
  • Putting a valid color name or equivalent hexadecimal value in the value text box.

You can also adjust the opacity of the borderline as in the video below.

  1. Border width: Enter the number of pixels to define the borderline width. 
block content type border width
  1. Border Radius: Enter the number of pixels for the size of the border’s radius. 
block content type border radius
  1. CSS Classes: 
block content type css classes

Enter the names of the CSS classes from the current style sheet to define the container. 

Notice to use a space to separate multiple class names. 

  1. Margins and Padding: 
block content type margins and padding
  1. Margins: the blank space of the container’s outside edges on all four sides. Options: Top/ Right/ Bottom/ Left.
  2. Padding: the blank space of the container’s inside edges on all four sides. Options: Top/ Right/ Bottom/ Left.

To adjust the margins and padding, put the corresponding values in pixels in the diagram. 

Finish

After completing all the settings, click the Save button at the top right corner of the edit page and return to the page builder stage. 

block content type save settings

More Options for Your Website With Magezon Page Builder

Generally, the Block content type in Magento Page Builder offers you all the basic features. However, if you want to have more advanced and interesting settings for a block‘s appearance then let’s discover the Block element in the Magezon Page Builder. 

There are two types of block elements that are Static Block and Generate Block. The thing that makes them different from the Block content type of Magento Page Builder is the CSS animation included. 

In Magento, it only includes default settings for the block container’s borderline. If you want to make it more special, then you need to have little skills in coding to fill in the CSS classes text box. However, in Magezon Page Builder you don’t have to figure it out by yourself anymore, your blocks still look more exciting to look at.   

We’ve designed these elements to help even users with no coding skills can have an amazing website of their own.

magezon block element

You can see the video below for better imagination. 

Not only can you identify the animation effect, but you can also adjust more detailed settings such as animation duration, delay, or infinite. 

magezon animation settings

Final Words

Finally, you have finished learning about the Block content type in Magento Page Builder with all the necessary information. You also got an extra option to have more interesting blocks for your website with little to zero coding skills, the block elements of Magezon Page Builder.  

If you want to have a user-friendly interface to work with then I highly recommend Magezon Page Builder. Not only the block elements, but it also has more than 50 elements with various options to build any page layout you want. 

Try FREE Magezon Page Builder demo today

Easily create beautiful, engaging Magento website in any style whenever you want without relying on developers or designers. Just by drag & drop.

About Ann Do

Ann Do
Ann is an experienced and passionate writer at Magezon. Her articles are aimed at helping audiences get their desired information and optimize their website.

Check Also

How to Create a Halloween Landing Page in Magento

It’s Halloween today. We’re gonna show you how to create a Halloween landing page using …

Leave a Reply