Wix Blocks: Connecting Your Widget's Text Styles to Site Typography Themes
2 min read
When you design a widget, you want it to look great on any site where it's installed. That's why connecting your widget's texts to a theme is so important. Styled texts, such as Heading 1 or Paragraph 2, are connected to a theme that defines their properties.
Connect a text element to site typography themes:
- Select a text element on your widget.
- Click Edit Text in the element's action bar.
- Select a preferred style (such as Heading 1, Paragraph 2). This connects your widget's text to a specific style in any Wix site's theme.
Override specific typography properties
You can choose to override each one of the typography properties (such as font family, size, bold, etc.). This override is represented by an asterisk next to the style name. Your text will stay connected to the site theme, except for the overridden property. Your text will disconnect from the theme only if you override all properties.
Currently, all text elements in Blocks appear with a size override, so you'll see the asterisk even if you didn't change anything. Click Reset Changes to undo this override.
Test whether your text is connected to a theme
Click Test Theme in Preview mode to see how your widget looks across various sites with different themes. This helps you check that all your elements are connected correctly and your widget looks great with different themes.
Want to learn more about Blocks?
Check out the Wix Blocks help articles
Did this help?