Widget Area

In this article, we're going to show you how to add sidebars, how to add widgets to those sidebars and how to add those sidebars in Cornerstone / Pro Builders using the Widget Area Element.

  1. How to Add Sidebars in X or Pro
  2. How to Assign Widgets to Sidebars
  3. Widget Area Setup
  4. Widget Area Design Settings
  5. Customize
  6. Demo
  7. Summary

How to Add Sidebars in X or Pro

To add sidebars, first go to Appearance > Sidebars.

Appearance Sidebars

Enter the name of the sidebar on Add New Sidebar then click the Add Sidebar button.

Manage Sidebars

After you've successfully added a sidebar, you'll see options available to you. You don't need to touch any of them but if you do, make sure to click the Update Sidebar button.

Update Sidebar

How to Assign Widgets to Sidebars

To add widgets to your sidebar, simply go to Appearance > Widgets.

Appearance Widgets

On the Widgets page, you'll see the sidebar you have created.

Widgets Sidebar

On the left side of the page, you'll see Available Widgets. To add a widget to the sidebar you created or to any sidebar for that matter, you have two ways:

  1. Drag the widget and drop it to the sidebar
Widgets Drag WidgetWidgets Drag Widget
  1. Click the widget. You'll see a list of sidebars. Click the sidebar from the list, then click Add Widget.
Widgets Add Widget

Now, to add the Widget Area element in Cornerstone and Pro Builders, search for "widget" and drag "Widget Area" to the canvas.

Element Widget Area

Widget Area Setup

Widget Area Setup

On the Sidebar dropdown, select the sidebar you want to display. You can change the base font size of the texts in the widget as well as change the background color of the entire widget as well.

Widget Area Design Settings

You can customize how the sidebar looks.

Margin

Use this option to set the margin of the sidebar. You can change the settings for all the sides of the sidebar or modify them individually.

Widget Area Margin

Padding

Use this option to set the padding of the sidebar. You can change the settings for all the sides of the sidebar or modify them individually.

Widget Area Padding

Border

Use this option to set the border of the sidebar. You can set the style, width and color of the border on all sides or each side individually.

Widget Area Border

Border Radius

Use this option to set a border radius for the sidebar. You can set the curve on all sides or set them individually.

Widget Area Border Radius

Box Shadow

You can set a shadow over the sidebar using the box-shadow control group.

  • X-Offset - Use this option to set the X offset of the shadow in the sidebar.
  • Y-Offset - Use this option to set the Y offset of the shadow in the sidebar.
  • Blur - Use this option to set the intensity of the blur effect in the sidebar.
  • Spread & Position - Use this option to set the spread amount of the items section shadow and decide if you want the shadow to sit inside or outside of the sidebar.
  • Color - Use this option to set the color of the sidebar shadow.
Widget Area Box Shadow

Customize

The customize section consists of controls to customize the element if you are into HTML, CSS, and Javascript.

Widget Area Customize
  • ID - Use this option to set an HTML ID for the element. The ID should be unique on the page.
  • Class - Use this option to set an HTML Class for the element. You can use the class for your custom CSS code.
  • Element CSS - Use this option to have better control over the element to access the inner tags of the element using $el as the CSS selection. Click here for more detailed information.
  • Hide During Breakpoint - Use this option to hide the element on different device sizes. Click here for more information.
  • Custom Attributes - Use this option to add a custom attributes to the wrapper HTML tag of the element. Such as data-info=123. You can use the option to inject custom information into the element to use on your customization code.
Custom Attributes

Demo

To see a live demo of the Widget Area Element click here.

Summary

Now you know how to add widgets to a sidebar and add how to use the Widget Area element in Cornerstone / Pro Builders.

See something inaccurate? Let us know