Lab Activity: Add Regions to the Product Page
Lab Activity: Add Regions to the Product Page
Objectives
- Add a standard region to the product detail page
- Add a global region to the product detail page
Prerequisites
- CLI installed
- Cornerstone theme cloned
In this lab, you will add two regions to the product detail page: one standard region scoped to the product page, and one global region available sitewide. A good place to add them is the product page template, templates/pages/product.html, which renders on every product detail page.
Add a Standard Region
- Open templates/pages/product.html in your Cornerstone theme
- Locate a logical insertion point on the page — for example, just below the product details
- Add the following region helper, giving it a descriptive name:
This region appears as an editable drop target only on pages that use the product template.
Add a Global Region
- Choose a second insertion point in the same file — for example, above the product details
- Add a region with the
--globalsuffix so it is available sitewide:
Because it is global, this region is available on every storefront page where the component renders, not just the product page.
You will test these regions once your theme is bundled and pushed to a store. We will cover that in the Module 5: Deployment section. After deployment, both regions become available as drop targets in the visual editor — Page Builder or Makeswift — so store users can place widgets in the locations you defined.