-
Closed
-
Hi, I had this in header.php in an older version of evolve+, tried putting the same code in just above the evolve content boxes but it no longer renders. I only wanted it on the homepage below the bootstrap slider.
add_filter( 'the_content', 'do_shortcode', 11 ); // From shortcodes.php
$sc="[woocommerce_products_carousel_all_in_one template='default.css' all_items='25' show_only='featured' products='' ordering='asc' categories='' tags='' show_title='true' show_description='false' allow_shortcodes='false' show_price='true' show_category='false' show_tags='false' show_add_to_cart_button='true' show_more_button='false' show_more_items_button='false' show_featured_image='true' image_source='thumbnail' image_height='100' image_width='100' items_to_show_mobiles='1' items_to_show_tablets='2' items_to_show='4' slide_by='1' margin='5' loop='true' auto_play='true' stop_on_hover='true' auto_play_timeout='1200' nav='false' nav_speed='800' dots='false' dots_speed='800' lazy_load='true' mouse_drag='true' mouse_wheel='true' touch_drag='true' easing='linear']";
echo do_shortcode($sc);
The topic Adding a product carousel – the following worked in an older version is closed to new replies