This is the documentation for LemonStand V1, which has been discontinued. You can learn more and upgrade your store here.

LemonStand Version 1 Has Been Discontinued

This documentation is for LemonStand Version 1. LemonStand is now offered as a cloud-based eCommerce platform.
You can try the new LemonStand and learn about upgrading here.

Global Content Blocks

Global content blocks are similar to the regular content blocks, but they can be used not only on pages, but also in layouts and partials. Global content blocks are also shared across themes. You can define a single content block and use it in different themes. Its content will be the same in all themes.

You can manage global content blocks on the CMS/Content page. Similarly to partials, global content blocks have name, code and content. The code field is needed for referring to global content blocks in pages, layout and partial code. To output a global content block on a page, layout or partial use the global_content_block() function. The block code should be specified in the function parameter:

<? global_content_block('welcome') ?>
{{ global_content_block('welcome') }}

Next: Managing Resources
Previous: Creating Editable Blocks
Return to Getting Started