Page Builder In Magento 2 - Kussin | Development Unit Macedonia

Page Builder In Magento 2

page builder, components, elements…

03.08.2023 | Enisa Abazi | Blog, Development

What is Page Builder in more detailed explanation?


Page Builder is a powerful visual content editing tool introduced in Magento 2.3.1 and later versions. It is designed to simplify the process of creating and customizing web pages in Magento without the need for extensive coding or technical expertise. With Page Builder, merchants and store administrators can easily build and design unique pages by dragging and dropping various content elements onto the page.

Key features and capabilities of Magento 2 Page Builder include:

1. Visual Drag-and-Drop Interface: Page Builder provides an intuitive drag-and-drop interface that allows users to add, arrange, and customize content elements easily. Elements like text, images, videos, buttons, sliders, and more can be added to the page effortlessly.

2. Content Elements Library: Page Builder comes with a rich library of pre-designed content elements, enabling users to choose from a variety of components to build their pages. This makes it simple to create engaging and visually appealing pages without the need for custom development.

3. Responsive Design: Pages created with Page Builder are automatically responsive, meaning they adapt and display correctly on various devices, such as desktops, tablets, and mobile phones.

4. Content Staging:Page Builder integrates with Magento’s content staging functionality, allowing users to schedule the publication of pages or changes to specific dates and times.

5. Version Control and Undo/Redo: Page Builder keeps track of page revisions, making it easy to roll back to previous versions if needed. It also provides an undo and redo feature to revert or reapply changes during the editing process.

6. Custom CSS and JS Support: While Page Builder enables non-technical users to create pages without coding, it also supports custom CSS and JavaScript for advanced users who want to add custom styles or interactivity.

7. Integration with Widgets and Extensions: Page Builder seamlessly integrates with Magento widgets and extensions, allowing users to incorporate additional functionalities into their pages.

8. Content Preview and Publish: Users can preview how the page will look on different devices before publishing it to the live site. Once satisfied with the design, they can easily publish the page with a single click.

9. Multi-Store Support: Page Builder supports multi-store setups, allowing users to create unique pages for different store views.

How to enable it?


Follow these steps to activate Page Builder in the Admin UI:

  1. In the Stores tab, select Configuration under the Settings group.

  2. In the General group on the page, select Content Management.

  3. Under Advanced Content Tools, select Yes for Enable Page Builder.


Creating content type


Example if we want to create our own Quote element, that can help us every time we use it to put our text in quotes, which you can use to show customer testimonials or other types of quotations within your storefront.

General Steps of creation

  1. Add configuration: Create an XML file to define your content type and reference the other files that control the appearance and behavior of your content type.

  2. Add templates: Create HTML templates that define the appearance of your content types on the Admin stage (preview.html) and the storefront (master.html).

  3. Add component: Create a JavaScript file that defines the behavior of your content type on the Admin stage (preview.js) and the storefront (master.js).

  4. Add form: Create a UI component form and a layout so Admin users can edit your content type within the Page Builder editor.

  5. Add styles: Create LESS files to style your content types when rendered in the Admin UI and on the storefront.

  6. Add an icon: Create an SVG icon to visually identify your content type within the Page Builder panel.

Magento 2 Page Builder offers a user-friendly and efficient way to create, customize, and manage content-rich pages in Magento without extensive development efforts. By empowering merchants and administrators to build visually stunning pages, Page Builder helps enhance the overall shopping experience and boost conversion rates on the online store.

Error: Contact form not found.