arrow-left arrow-right brightness-2 chevron-left chevron-right circle-half-full dots-horizontal facebook-box facebook loader magnify menu-down rss-box star twitter-box twitter white-balance-sunny window-close
WooThemes Canvas Slider with Slider Group
1 min read

WooThemes Canvas Slider with Slider Group

WooThemes Canvas Slider with Slider Group

This is a quick snippet which may save some WooThemes Canvas users a lot of time. Sometimes you might want to create a slide group and then insert this into a page.

We can take advantage of the built in slide groups and slide functionality that comes from the Business Template. We just need to adjust the arguments that are used so we can specify the ID of the slide group.

In the code below change slide_page to the ID of the slide group. You can find this out by visiting the Edit Page of the slide group and looking for the ID in the address bar.

You can also change the if (is_shop() ) to other WooCommerce conditional options and then display the slide on different pages. Have a look at the Woo Hooks and Actions section for Canvas.

This code has been forked from the (Woo Support)[] which has a few comments asking how to do this.

Hope it helps

The Code


To use please add this to your theme’s function.php file.

17th October Update

I’ve added another function at the bottom which will add the body classes required to make the slider full width. If you don’t want a full width slider you can remove this function.

Enjoying these posts? Subscribe for more

Subscribe now
Already have an account? Sign in
You've successfully subscribed to Raison.
Success! Your account is fully activated, you now have access to all content.
Success! Your billing info is updated.