Button Widget

Buttons on the web are there to act. A well-designed, good-looking button is always crucial in any web design. Buttons hold the key to page redirection, interaction, and data flow on web pages.

How to add a Button widget

You need to create a new section, choose a grid layout and click adding a new element. By adding a new element, you will see a popup including all the widgets available.

Simply choose the Button widget from the widget list, then it'll be added to the layout's section where you want to add a Button widget.

The Button Widget settings come with 4 different settings tabs:

  • General Settings

  • Design Settings

  • Responsive Settings

  • Menu Assignment

I. Button Widget - General Settings

1. Add New Button Items

The widget inline editor will open up when you click on the Button element in the layout. You can access the widget settings and customize the button to fit your needs.

In the general setting tab, click on "Add Item" to add a new button item.

  • Button title: The button title is the name of the button.

  • Link: Insert the URL you want to link to the button.

  • Link Target: Specifies the context in which the linked resource will open.

  • Styles: Choose a button style from the drop-down list.

  • Outline Style: Enable to create a line that is drawn around the button element, outside the borders, to make the element "stand out".

2. Button Widget Styles

  • Enable Button Group: Enable this option if you'd like to group a series of buttons on a single line with the button group.

  • Button size: Choose an option for the button size

  • Styles: Choose a size style for buttons.

  • Border Radius: Choose an option for the border radius of buttons.

  • Gutter: Select a padding between your buttons.

  • Custom Class: Write the class name used for writing custom CSS or JS.

  • Custom ID: Give a custom ID to override the auto-generated ID

II. Design Settings

  • Element Visibility: Choose to set the element to be visible on "Current and all linked pages", or on "Current menu items only".

  • Animation: Choose an animation for the widget from the drop-down list.

  • Max Width: Set the Max Width for the widget.

  • Text Alignment: Set the alignment of the text of the widget.

  • Text Alignment Breakpoint: Choose a breakpoint at which the text alignment will change.

  • Background Type: Select the background type for the widget from None, Color, Image, Video or even add a Gradient.

  • Custom Color: Choose whether you want to enable or disable the custom colors for the widget. If you enable it then you have the option to set Text Color, Link Color & Link Hover Color of the element’s content.


Add margin and padding values over the row to improve its appearance on different devices.

III. Responsive Settings

Device Visibility: Choose your preference for hiding or showing the section on different screens like:

  • Hide on Extra Small Devices

  • Hide on Small Devices

  • Hide on Medium Devices

  • Hide on Large Devices

  • Hide on Extra Large Devices

IV. Widget's Menu Assignment

Since Astroid framework 3.0.12, the menu assignment feature has been introduced, which is applied to widgets available in Astroid's widget library.

You can choose between On all pages, No pages, Only on the pages selected from the List.

  • On all pages: the widget will be visible on all pages of your website

  • No pages: the widget will be invisible on all pages

  • Only on the pages selected: "Menu Selection" will show with all the menu items on. You can assign the widget by selecting the menu links that you want the widget associated with on what pages the widget appears.

Last updated

© Astroid Framework 2023.