Overview #
The Custom asset block is designed to allow users to integrate custom code snippets into their theme, enhancing the flexibility and functionality of the site. It is particularly useful for embedding custom scripts or styles that are not natively supported by the theme.
Key components and functionality #
Custom asset
The Custom asset block is a versatile tool that allows users to add custom code to their theme. This can include HTML, CSS, or JavaScript, providing a way to extend the theme's capabilities beyond its default settings.
- Code: This setting allows users to input custom Liquid code. Liquid is a template language used to create dynamic content. By using this setting, users can add custom functionality or integrate third-party services directly into their theme.
Purpose
The primary purpose of the Custom asset block is to provide a flexible way to incorporate custom code into the theme. This can be particularly useful for advanced users who want to add unique features or styling that are not available through the standard theme settings.
Available in sections #
The Custom asset block can be used in the following sections:
- Custom code
- Code viewer
Usage examples #
-
Embedding a third-party widget: Use the Custom asset block to add a third-party widget, such as a chat support tool or a social media feed, by pasting the provided embed code into the "Code" setting.
-
Custom styling: Apply unique styles to specific elements on your site by adding custom CSS within the Custom asset block. This can help tailor the appearance of your site to better match your brand identity.
-
JavaScript functionality: Enhance user interaction by adding custom JavaScript code. For example, you could implement a custom form validation script or a dynamic content loading feature.
By utilizing the Custom asset block, users can significantly enhance the functionality and appearance of their site, making it more engaging and tailored to their specific needs.
Align v1.7 is out now! Learn more about our best release yet →