If you are using Virtue Theme together with Woocommerce, then probably you will ask how to enable slider in shop page. Actually the free version does not built in the slider in the shop page. If you want easy control then i would suggest you buy the Virtue theme premium version, it give you what you want. If you would want to try your luck with some code editing, then you can follow the instruction below.
Virtue Theme: enable slider in shop page, follow the steps below:-
Advertisements
- Edit this file “wp-content/themes/virtue/woocommerce/archive-product.php”
I would suggest you run your own child theme and copy this file to your child theme folder and edit from there. - Look for these
1234567891011121314<?php/*** The Template for displaying product archives, including the main shop page which is a post type archive.** Override this template by copying it to yourtheme/woocommerce/archive-product.php** @author WooThemes* @package WooCommerce/Templates* @version 2.0.0*/if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly?><div id="content" class="container"> - and change it to this:-
123456789101112131415161718192021222324252627<?php/*** The Template for displaying product archives, including the main shop page which is a post type archive.** Override this template by copying it to yourtheme/woocommerce/archive-product.php** @author WooThemes* @package WooCommerce/Templates* @version 2.0.0*/if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directlyif(isset($virtue['choose_slider'])) {$tmp_slider = $virtue['choose_slider'];} else {$tmp_slider = 'none';}?><?php if($tmp_slider != 'none') : ?><div class="row"><?php get_template_part('templates/home/flex', 'slider'); ?></div><?php endif; ?><div id="content" class="container">
** By the way this method only allow you to use Flex slider. TQ
Related posts:
How to sync Google Calendar with Thunderbird
SVN: How to commit only modified files via command line
How to remove Powered By Prestashop footer link
Contact Form 7: Clear all field except specific after submission
PHP Programming: The difference between require() and include()
Symfony Filter: Change ForeignKey drop down to Text field
Woocommerce: Behaviour of each payment method during checkout
How to hide apache2 version number in error page
Share this with your friends:-