Do you think that sliders can only go your site’s homepage heading? Read on to learn how you can display Toolset sliders in different parts of your site, for different needs.

Sliders are a great way to show content in a dynamic and engaging way. Sliders let visitors concentrate on one item at a time and draw attention to the next item that comes along.

Since Toolset Sliders are actually Views, you can display them anywhere in your site. Let’s see some examples of unique sliders for unique needs.

The Classic – Homepage Slider With Featured Image

The most common place we see sliders is in the heading of the site’s homepage. When you create a slider for a homepage, you typically want to add it to the page’s content.

Slider on the homepage
Slider on the homepage

Drag the Views Widget to any zone that you want. When it’s there, select the slider View that you’ve created (or imported from our modules library).

You can also add Views Widgets using the Theme Customizer screen.

Create a new page and assign it as the static home page. Then, edit the page, click on the Fields and Views button and insert the slider. In our magazine reference site, used for the image above, the homepage includes a collection of Views, each implementing a different part of the site. We’ve created a View for the slider, another View for the sidebar content, a View for the categories and so on.

Sliders in Sidebars

Every WordPress theme has sidebars and all sidebars use Widgets. You can add Views to any widget zone, so you can easily display your sliders in the sidebar.

Of course, keep in mind that sidebars are narrow, so the slider needs to be desigened to fit into the available space. You can get inspiration from our Sidebar Testimonials module, which is designed to show in narrow sidebars.

Narrow slider for a sidebar
Narrow slider for a sidebar

Go to your site’s Appearance->Widgets admin screen. You will see a list of widget zones, on the right, and widgets, on the left.

Drag the Views Widget to any zone that you want. When it’s there, select the slider View that you’ve created (or imported from our modules library).

You can also add Views Widgets using the Theme Customizer screen.

Sliders in Footer, Header and Other Areas Without Widgets

Finally, you might want to display your Toolset sliders in places that don’t have widget zones. Many themes let you customize various site sections using PHP hooks. Let’s see how to add Views there.

Views plugin comes with a PHP API for displaying Views and and Content Templates.

You can use the render_view function to output the View into your PHP code. Add it to your theme by either editing the PHP directly or by using hooks in the theme. This way, you can display Toolset sliders anywhere you choose, with maximum flexibility.