Front-end assets management (Pro)
Last updated
Was this helpful?
Last updated
Was this helpful?
Advanced layouts, such as sliders, masonry grids, or galleries, require the use of JavaScript libraries. The Advanced Views Pro offers simplified assets management for these scenarios.
The Advanced Views comes with a set of pre-loaded JS libraries. In addition to the libraries themselves, Advanced Views knows their markup requirements and the minimal configuration they need. This allows you to easily incorporate these libraries into your Views and Cards without any hassle.
Let's consider a practical example.
Suppose you have an ACF gallery field and want to turn it into an inline gallery.
You select the in the of the field settings. Advanced Views will automatically adjust the field's markup by adding the necessary classes and wrappers required by the LightGallery library. It will also include the minimal configuration settings for the instance in the JS code of the current View.
Now, if you need to, you can quickly customize this default gallery markup and the JS configuration of the inline gallery.
When the View or Card that uses a specific JS library is displayed on a page, Advanced Views will automatically load that library on the page. This means you still have full control over the markup and JS instance settings, but you don't need to worry about library loading, reading documentation about markup requirements, or configuring the instances from scratch.
You can find the full list of pre-loaded JS libraries on this page, along with information about which field types are supported by each library.
Below you'll find a list of the supported libraries grouped by layout types.
Supported field types: all fields that support multiple images inside, like WooCommerce Product Gallery, ACF Gallery fields, etc.
Supported field types: all fields that support multiple images inside, like WooCommerce Product Gallery, ACF Gallery fields, etc.
Supported field types include all fields that support multiple (non-plain) items. Examples of such fields are ACF relationship and user fields with multiple options, and Repeaters, among others. Additionally, you can use a slider for the Card items, which can be configured in the Layout tab of your Card settings.
Simple (custom)
Supported field types: all image fields (like Post.FeaturedImage or ACF image), and all fields that support multiple images inside. It means, that for example, you can use Lightbox for the Masonry gallery.
The Advanced Views Pro comes with the built-in JS code to display and . No extra library is required.
Haven't found your favourite library in the list? Read or use the option to request it.
Tip: In addition to front-end asset management, Advanced Views Pro includes a built-in . You can enable it for any Card, saving you the effort of implementing the load-more feature repeatedly.