How Can We Help?
How to Add New Homepage Content Block
Step 1: Log in to the Magento 2 Admin Panel
Start by logging into your Magento 2 backend, usually at yoursite.com/admin.
Step 2: Create a New Block
- Navigate to Content > Elements > Blocks from the admin sidebar.
- Click on the Add New Block button.
- Enter a Block Title for internal reference.
- Assign a unique Identifier to your block (this is used to reference the block in your layout or templates).
- Set Status to Enabled.
- In the Content area, use the editor to add text, images, or HTML. You can add your affiliate links here, formatted as you like.
- Once your content is added, click on Save to keep the changes.
Step 3: Add the Block to the Homepage
- Navigate to Content > Elements > Pages.
- Search for your homepage, which is typically titled “Home page” or something similar, and click on Edit in the Action column.
- Under the Content heading, click on Insert Widget.
- From the Widget Type dropdown, select CMS Static Block.
- Then, in the Block dropdown, select the block you created earlier.
- Click on Insert Widget to add the CMS Block widget into the page content.
- You might want to arrange where on the homepage you want your new block to appear. You can do this within the Content area using the WYSIWYG editor.
Step 4: Clear Cache
- After making changes, go to System > Cache Management.
- Flush Magento Cache by selecting Flush Magento Cache and Flush Cache Storage.