Magento 2: Add/Update CMS Page via Install/Upgrade Script Programmatically

This article shows how you can add or update CMS Page using Install or Upgrade Script of a module in Magento 2. This code is useful when you need to auto add/edit cms page while installing or upgrading your custom module. Add CMS Page from InstallData Setup Script This will add cms page when you … Read more

Magento: Show CMS Static Block on only one specified Category page

Sometimes we might need to show a single static block in one or few specified categories only, rather than showing the static block on all pages. The layout XML code below helps to achieve the above requirement. It will show the static block ‘my-sidebar-1′ on right sidebar of category with id ’10’. Similarly, static block … Read more

Magento: Add jQuery tabs in CMS page

You can add tabs in a CMS page in Magento. I have used jQueryUI tabs for this purpose. You can view the examples and source code of the tabs feature here: http://jqueryui.com/tabs/ Here is the step-by-step guide to create tabs on Magento CMS page:- 1. Create a CMS page (CMS -> Pages -> Add New … Read more