Front-end assets management (Pro)
About the feature
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 LightGallery library in the Gallery option 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.
Supported libraries and field types
Below you'll find a list of the supported libraries grouped by layout types.
Masonry
Supported field types: all fields that support multiple images inside, like WooCommerce Product Gallery, ACF Gallery fields, etc.
Image gallery
Supported field types: all fields that support multiple images inside, like WooCommerce Product Gallery, ACF Gallery fields, etc.
Slider/carousel
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.
Lightbox (image popup)
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.
Google and OpenStreet Map
The Advanced Views Pro comes with the built-in JS code to display Google and Open Street Maps. No extra library is required.
More
Haven't found your favourite library in the list? Read how to enqueue a custom JS library or use the suggest a feature option to request it.
Last updated