Skip Navigation

Elementor View widget for split Views doesn’t work properly for block-based Views

Open

Symptoms

The Elementor View widget allows for splitting the search form and search results (e.g. into separate columns on the same page).

This works correctly for classic Views.

With block-based Views, where the widget to insert the search results should output just the results, it also includes the search form (so it appears twice on the page).

Workaround

Two workarounds are possible:

1. create the View using the classic editor instead of Blocks, or

2. insert the View using shortcodes instead of Elementor’s View widget

e.g.

add this shortcode (edited for the View name) to one text module for the search form:

[wpv-form-view name=”My Search View” target_id=”self”]

and add this shortcode to another for the results:

[wpv-view name=”My Search View” view_display=”layout”]

Leave
a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>