In this tutorial, Today I will explain to how to add the custom notice to the page top in Magento 2. Whenever the store owner wants to display a custom notice on the top of the page on the whole site at that time, this blog will be useful for you.
Sometimes, whenever the store owner wants to announce a sale offer, or shipping method offer, etc. at that time, this custom notice to display on page top is the best way.
Let’s see the below steps for add the custom notice to the page top in Magento 2.
You may also like this :
- How to Hide Add to Cart Button for Specific Product in Magento 2
- How to Get Root Directory Path in Magento 2
- Log in to Admin Panel.
- Go to Content -> Elements -> Widgets.
- Click on Add Widget.
- Select Type: CMS Static Block.
- Select Theme: Magento Luma.
- Enter Widget Title.
- Select Store View.
- Add Sort Order Value.
- In the Layout Updates, select All Pages.
- Select Page Top in Container dropdown option
- In the Widget Options, Select your static block which you want to display in the notice.
- Click on Save.
That’s it !!!
Output :
I hope this blog is easy to understand how to add the custom notice to the page top in Magento 2. In case, I missed anything or need to add some information, always feel free to leave a comment in this blog, I’ll get back with a proper solution.
Stay Safe and Stay Connected !!