For a better experience please change your browser to CHROME, FIREFOX, OPERA or Internet Explorer.
List your Store
Woocommerce Code to Add something on Shop Page

Woocommerce Code to Add something on Shop Page

Woocommerce Code to Add something on Shop Page

By Using this code you can place anything on the shop page of woocommerce before loop.

Here I want to show my Revolution slider on the shop page before the products.

The code for that is:

add_action(‘woocommerce_before_shop_loop’,’rev_slider_in_shop’);  //before the products  we are making a function rev_slider_in_shop
function rev_slider_in_shop() {

echo do_shortcode( ‘[rev_slider slider]’ );  //Adding shortcode for the revolution Slider here in my case ‘slider’ is the name of my slide

}

 

 

Code should be placed in function.php of your theme

leave your comment


Your email address will not be published. Required fields are marked *

Top