Text Widget
Last updated
Last updated
© Astroid Framework 2023.
Using the Text widget, you can add text content to your layout builder. It is one of the most basic but essential tools in your toolkit.
Open your layout and click to add a new element. By clicking on adding a new element, you'll see a popup including all the widgets available in the library.
Simply choose the Text widget from the Widget list, then it'll be added to the layout's section where you want to add a Text widget.
The Text Widget consists of 4 main setting tabs:
General Settings
Design Settings
Responsive Settings
Menu Assignment
Now it’s time to customize the Text element how you want. You will find the options you need by clicking to edit the text element icon on the inline editor. This will open the Text settings where you will be able to adjust the following:
Heading: Enter the heading title of the text content.
HTML Element: From here, you’ll be able to select the HTML elements you want your heading to consist of. Options include H1, H2, H3, H4, H5, and H6.
Font Family: Choose a font family for the text heading.
Alt Font Family: It means Alternative Font Family. Choose an alt font family in case the browser does not support the first font, it tries the next font.
Font-weight: Set the font weight for the text heading.
In this part, you can input the text in the content box, and configure typography settings for the added content to fit your preference including font family, alt font family, font weight, font size, letter spacing, line height, text-transform, and font color,
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.
Max Width: Set the Max Width for the widget.
Text Alignment: Set the alignment of the text of the widget.
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 also 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 on Small Devices
Hide on Medium Devices
Hide on Large Devices
Hide on Extra Large Devices
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.