Using Markup Tags
A markup tag is a snippet of code that creates a relative reference to an object in your store. Markup tags can be incorporated into page links and used in the HTML content of a CMS page, block or email template. Markup tags are enclosed in double, curly braces, and can be generated by the Frontend App tool, or typed directly into HTML content.
For example, rather than hard-coding the path to a page, you can use a markup tag instead of the absolute store URL. You can also use markup tags to refer to images that are in media storage, or to display a block. The markup tags featured in the following examples include:
- Store URL
The Store URL markup tag represents the base URL of your website, and is used as a substitute for the first part of a full URL, including your domain name. There are two versions of this markup tag: One that goes directly to your store, and the other with a forward slash at the end, so a path can be added.
- Media URL
The Media URL markup tag represents the location and filename of an image in media storage, and can be used to place an image on a page, block, banner, or email template.
- Block ID
The Block ID markup tag references a block by its identifier, and can be used to place a block on a page, in another block, banner, or email template.
Still have questions? Submit them below and they'll be answered by our expert support team.
Like what you read? Drop us a note with your feedback below.