the_static_block()

« Go back to Template Functions

Description

Displays a static block.

Static blocks are created through your Magento CMS, there’s usually one already made for footer links. These can be useful for content managed snippets of text, for example, a short bio of the store for use in the footer, or a discount callout to be displayed across the site.

Parameters

<?php the_static_block($identifier); ?>
  • $identifier: the identifier for your static block.

Usage

<?php
/* Display a static block - the footer links */

the_static_block("footer_links");
?>

Related Functions