SliderRevolution+Wordpress+X theme below masthead help

Hi there,

We have a logo that is slightly taller than it is wide so it protrudes into the slider (light logo, dark picture, white menu text). That set up looks great but locks us into using a slider on each page.

However we don’t have the option to add this into a Woocommerce product page.

Can you help us with a suggestion or two?

With slider revolution header:

Without (on product page):

Can’t find this setting on a product admin page:

Hello Paul,

Thanks for reaching out. :slight_smile:

You can add following code in child theme function.php file:

// Add custom slider to WooCommerce Shop and product pages
// =============================================================================
function rev_slider_in_shop() {
  if (  x_is_shop() || x_is_product() ) {
  	echo do_shortcode( '[rev_slider alias="gym-classes"]' );
  }
}
add_action('x_after_view_global__slider-below', 'rev_slider_in_shop');
// =============================================================================

You can find the Alias in Revolution Slider under Slider Title & Shortcode.

You can use following resources to download and setup child theme.

Download Child theme from following source: https://theme.co/apex/child-themes

Please take a look at following article to setup child theme:

Thanks.

Looks like a nice solution Prasant. Thanks. I’ll give it a try and report back.

You’re most welcome.

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