Magento Expert Forum - Improve your Magento experience
-
How to Call CMS Static Block in Phtml File in Magento 2
Magento 2 static blocks are helpful to admin to add and control HTML code to be displayed in the frontend. Generally, admin uses the static block for size charts, offer banners, sale promotions, return policies, etc.
The entire objective of creating these static blocks is to streamline the amount of time it takes to update your site. You don’t need to dive into the hundreds of lines of code to update the changes every time!
Using Phtml file is one of the ways to call CMS static block in Magento 2.
Check https://meetanshi.com/blog/call-cms-...-in-magento-2/ for the implementation of the same!
View more threads in the same category:
-
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks