Views is a WordPress plugin that lets you easily design the display of single pages using content templates. You can also include any field belonging to the content in your templates, without writing PHP code.
When you ask for help or report issues, make sure to tell us what you have created so far and what you want to achieve.
Viewing 15 topics - 2,011 through 2,025 (of 2,103 total)
I am using a Bootstrap accordion to display various views. I want to only load the images within the panel once the panel is clicked. The page is very large (12-30 Mb) when all the images load directly when the page loads.
Is there some js or HTML or CSS that I can paste in here or some Custom Code I can add so that the images only load once the panel is clicked?
Solution:
There isn't such a built-in feature within Views plugin, see details here:
Problem:
The output of a View normally occurs all in one place, with the filter controls and pagination and then the results, how can these be separated to customise the layout of the page?
Solution:
At the end of each View is the Output Editor.
There you can see that the filter section and output section are indeed added sequentially via the two shortcodes.
This editor is a normal markup editor, so you can add whatever markup you want to here, such as a grid, to layout the filter controls and results, plus other content, as you wish, and there's no reason why you can't reverse the order, for example.
If you are displaying the View on a page where your theme adds a sidebar along with the main content area (which is where the View would appear), then you can add the filter controls as a widget in the sidebar.
If you go to Appearance > Widgets you should find a widget to insert Views results, and another to insert the filter controls.
Note that there is one limitation with the filter controls widget, namely that your filters must include a submit button.