To create the presentation for an element on the storefront, you have to do the following:
Create the HTML content for the element
Modify the widget’s
display.templateto include the element, thereby creating an element-based widget.Add a
widget.templatefile to manage editing of the element-based widget on the Design tab.

