Menu
Feedback
Start here
Tutorials
Developer portal

Known Issues
Support Rules
Troubleshooting

Frequently Asked Questions
Announcements
Tutorials
Tutorials
Explore in-depth tutorials for operating your VTEX store.
Tutorials
Storefront
Layout
What is the purpose of the Customized Control?
What is the purpose of the Customized Control?

Some projects require the use of a banner, a shop window display, or even an HTML code that will be used on different pages of the site. A typical example is the free delivery and discounts banner located on the header, right below the menu.

In order to avoid manually adding the same content several times on each page, we have created the Custom Elements area.

Customized controls are very useful for development, and they facilitate the update of contents created for this purpose. They can be used on Page Templates and Subtemplates.

Creating a customized control

To create a Customized Control, go to the Admin and access the Storefront menu. Click Layout and on the CMS folder and then on Custom Elements.

In the Custom Elements area, you can create up to four types of characteristics to customize the Tag.

The types include Banner, BannerDHTML Collection or HTML.

To create a customized control tag, click on Add, enter a name, a tag name, and select the type.

{"base64":"  ","img":{"width":1166,"height":708,"type":"png","mime":"image/png","wUnits":"px","hUnits":"px","length":44357,"url":"https://raw.githubusercontent.com/vtexdocs/help-center-content/refs/heads/main/docs/en/tutorials/Storefront/Layout/what-is-the-purpose-of-the-customized-control_1.png"}}

Warning: do not create an HTML type control with an element title. This may interfere with your store operation.

Application of customized controls on a page template

The application of a customized control tag is similar to the use of the element. The tag should be placed where you want the content to be loaded.

In order to differentiate the customized control created that will be used, enter the tag name that was added together with the control syntax.

See the syntaxes for each type of control below:

  1. Banner Type: <vtex:tagname />
  2. HTML Type: <vtex.cmc:tagname />
  3. Collection Type: <vtex.cmc:tagname />
Contributors
2
Photo of the contributor
Photo of the contributor
+ 2 contributors
Was this helpful?
Yes
No
Suggest Edits (GitHub)
Contributors
2
Photo of the contributor
Photo of the contributor
+ 2 contributors
On this page
Still got questions?
Ask the community
Find solutions and share ideas in the VTEX community.
Join our community
Request support from VTEX
For personalized assistance, contact our experts.
Open a support ticket
GithubDeveloper portalCommunityFeedback