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 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 dashboard click Themes.

  2. Then click Installed Themes.

    + Enlarge Graphic

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

  4. Using the Template Editor tool, add the following code to include your Widget within the template.

    Replace slug_name with the Slug name that you created, eg. homepage-main-promo

  5. Click Save.

  6. 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.