Hi guys,
Love your theme but I would like to do the following changes. On the product page, I have disabled the light box via theme options.
Ok but then, when I click on a product image, I would like the main product image to open in a new tab instead of loading in my current window.
Next, If I were to click on the next preview image, it should load as the main image instead of loading the image in the current window.
Is this possible?
Much thanks.
Hey aminzainotdini!
I’m not really sure I understand correctly but it sounds like you want all of your product images to open in new tabs instead of lightbox is that correct?
If so then try adding this to the bottom of your /enfold/functions.php file.
add_filter( 'wp_footer', 'enfold_customization_product_image_newtab' );
function enfold_customization_product_image_newtab() {
?>
<script type = "text/javascript">
jQuery(document).ready(function(){
jQuery('.single-product-main-image a').attr('target', '_blank');
});
</script>
<?php
}
Regards,
Elliott
Hey Elliott,
The product grid shortcode doesn’t allow me to order the products by “menu order” or show featured products, which is what I require.
Best,
Amin
Hey!
For sorting them try this plugin out, https://wordpress.org/plugins/post-types-order/.
Regards,
Elliott