Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #351772

    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.

    #352069

    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

    #354890

    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

    #355446

    Hey!

    For sorting them try this plugin out, https://wordpress.org/plugins/post-types-order/.

    Regards,
    Elliott

    • This reply was modified 10 years ago by Elliott.
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.