Create a Widget


Widgets are an effective tool for updating your website without having to dive into the template code. They are also useful for inserting and managing content, javascript, and images throughout your site.  

To create a widget follow the steps below:

Create Widget
1. From the Acenda dashboard click Content
2. Then click My Widgets
The WIDGETS page displays.
3. Click New Item
The NEW WIDGET form displays.

4. Enter the New Widget details:

  • Title: This field is only used to identify your Widget within the Admin Tool.
  • Publish: Use the checkbox to activate the Widget
5. Click Save
Add Widget to Template
1. From the Acenda dashboard click Settings
2. Then click Themes

+ Enlarge Graphic

4. Navigate to your site's Twig templates. For example, the homepage index.html template

5. using the Template Editor tool, add the following code to include your Widget within the template.  

Note: You must use the exact syntax below otherwise it may break your page:

{{ api.get('widget/render',{'slug':'slug_name'}) }}

Replace slug_name with the Slug name that you created, eg. homepage-main-promo
6. Click Save
7. Click Deploy
Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

There are 0 Comments

Please sign in to leave a comment.