How to Create Widgets in Magento 2
Creating widgets in Magento 2 lets you easily add dynamic content and interactive features to your online store’s pages. Here is a guide on how to create widgets in Magento 2:
Step 1: Log in to the Admin Panel
Log in to the Magento 2 admin panel using your credentials.

Step 2: Go to the Content Menu
Once inside the admin panel, click “Content” in the main menu.
Step 3: Select “Widgets”
In the menu on the left, under the “Frontend Apps” section, click “Widgets”.

Step 4: Create a New Widget
Click the “Add Widget” button in the top right corner of the page.

Step 5: Select the Widget Type
Magento 2 offers several widget types to choose from, such as static blocks, products, categories, and so on. Select the widget type that best fits your needs and click “Continue”.

Step 6: Configure the Widget Settings
Fill in the fields provided to configure the widget settings. These settings can include the widget name, display options, display targets, visibility conditions and other configuration options specific to the selected widget type.
Step 7: Configure the Widget Parameters
Configure the widget parameters according to your needs. These parameters can include the widget content, such as text, images, links or other interactive elements.
Step 8: Save the Widget
After configuring all the widget settings and parameters, click “Save” to save the new widget.

Step 9: Assign the Widget to a Position
Assign the widget to a specific position on your Magento 2 site. You can do this by selecting the desired position in the “Layout Updates” tab.

Step 10: Check the Widget
After saving the widget, check that it displays correctly on your online store. You can browse the storefront and look for the widget in the assigned position to make sure it was created and configured correctly.
By following these steps, you should be able to create widgets in Magento 2 and add dynamic content and interactive features to your online store’s pages. If you run into problems or need more information about a particular step, don’t hesitate to ask for help.