Slider Revolution for Category page

Hi,

Just like in the Pages, I want to set a slider for a specific PRODUCT CATEGORY, as Above Masthead slider.

Is it possible? or is it limited to pages only?

Thanks

Hi,

It’s limited to pages only, but you can add one to your category page using action and filters

So to add a slider, you can add the code below in your child theme’s functions.php file.

/* Add slider in Category page */
function add_my_slider() {
   if(is_category(22)) {
            echo do_shortcode('[rev_slider alias="test"]');
   }
}
add_action('x_before_view_global__slider-above', 'add_my_slider');

Please add it after this line

// Additional Functions
// =============================================================================

In the code above, you need to change 22 with your category id

and change the revslider shortcode with your own, you can get it here

Hope that helps

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.