Button Widget
Last updated
Last updated
© Astroid Framework 2023.
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.
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 contains 4 main settings tabs:
General Settings
Design Settings
Responsive Settings
Menu Assignment
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" button to add a new button item. Then start configuring each item.
Button title: The button title is the name of the button.
Link: Insert the URL you want to link to the button.
Icon: Choose an icon for each button
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".
Button size: Choose a button size.
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 button style for buttons such as: Primary, secondary, success, danger, warning, info, light, dark, link, and text.
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
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.
Here in the design settings, you can add custom CSS to customize the design of the element.
Device Visibility: Choose your preference for hiding or showing the section on different screens like:
Hide on Extra Small Devices: Hide the widget on mobile phones.
Hide on Small Devices: Hide the widget on tablets.
Hide on Medium Devices: Hide the widget on laptops.
Hide on Large Devices: Hide the widget on desktop.
Hide on Extra Large Devices: Hide the widget on large screens.
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.