Blocks and pages in Magento

Magento uses blocks to differentiate between the various components of its functionality, the idea being that this makes it easier for Magento developers and Magento theme designers to customize the functionality of Magento and the look and feel of Magento respectively.

A content block displays the generated HTML provided by Magento for any given feature. Content blocks are used within Magento structural blocks. Examples of content blocks in Magento include the following:

  • The search feature
  • Product listings
  • The mini cart
  • Category listings
  • Site navigation links
  • Callouts (advertising blocks)

Simply, content blocks are the what of a Magento theme: they define what type of content appears within any given page or view within Magento. ...

Get Magento 2 Theme Design - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.