Newsletter
Overview:
This article will walk you through the process of adding a Newsletter widget to your templates. The Newsletter widget lets your customers enter their email address in order to subscribe to your store newsletter.
To add a Newsletter widget follow the steps below:
Add Widget
-
From the Acenda dashboard click Content.
-
Then click Widget Library.
The Widget Library page displays. Locate the Newsletter widget tile.
-
Click Add Widget.
Styling Your Widget
-
From the Acenda dashboard click Content.
-
Then click My Widgets.
-
Locate the Newsletter widget and click Edit.
-
Widget Settings
Title: The title of your widget.
Images: You can upload multiple images that will be placed into an array titled ‘images’ to be used in the Twig Template. You can add a caption, alt-text, and a link to the images as well.
Slug: The identifier for your widget.
Tags: Additional identifiers for your widget you can use in rendering the widget.
Data Queries: Use the Query Builder to build your own data queries. Enter the model you’d like to query under Model Name. For instance, if your widget is a featured products widget, you would enter ‘product’. The model alias is a descriptive name you give your query such as ‘featured products’.
Parameters: Variables that will instantiate when your widget is rendered. Enter the name of the parameter to be used in the Twig Template and the value to instantiate. You can edit the values after the parameters are saved in the top right column of the widget editor.
Sort Position: The position on the page your widget will appear in relation to other widgets. Lower values signify a higher up position.
Publish Date: The date you wish your widget to be published to the page. Leave blank and check the ‘Publish’ box to publish immediately.
Publish End Date: The date you wish to remove your widget from the page. Leave blank if you do not wish to de-publish your widget at any time.
Publish: Check the box if you want to publish your widget.
-
When done click Save.
Add Widget to Template
-
From the Acenda dashboard click Themes.
-
Then click Installed Themes.
The Template page displays.
-
Browse to the twig template that you would like the Newsletter widget to appear on.
-
Using the template editor move your cursor to the section of the twig template where you want to insert the Newsletter widget.
-
In the footer of the screen, use the Select a Widget dropdown menu and choose Newsletter.
-
Click Insert Widget.
The Newsletter widget will now appear within your twig template.
-
Click Save.
-
When you are ready to deploy the changes, click Deploy.
Please sign in to leave a comment.
There are 0 Comments