WooCommerce Product page images look

Posted in: Newspaper
Post count: 260

Hello

I am an old and huge fan of your theme.

But till a WooCommerce last update, the products images no more react like before.
On click thumbnail it’s open the image.
It is not logical and the way it works before.
https://www.virtualmagie.com/boutique/livres-de-magie-papier/en-route-john-guastaferro-francais/

I know you already answer that it is a WooCommerce change but all other major themes I use still works find.
Example with Avada :
https://fighttigerclub.fr/produit/stage-self-defense-feminine-14-avril-neuilly/

Is not a fancy thing but a really important function needed in the money part of the sites.
Make people click on a image to open another page is not more use for years and a awesome theme like yours mustn’t do this anymore.

Please really consider to put back quickly that in the next update.

If other theme users want this function back please put a comment to push this. 🙂

Regards

  • This topic was modified 7 years by Thomas.
Post count: 35449

Hi,

That should still work, the woocommerce authors changed the functionality a while back. Now you have to enter the code provided in that page in the theme or child theme functions file
http://prntscr.com/mxaa3a
If you only want the lightbox remove the other lines – http://prntscr.com/mxaaeu
Then the product images will open in the woocommerce lightbox
http://prntscr.com/mxaav6http://prntscr.com/mxab1y

Thanks

Post count: 260

Ok thanks.
For those needed the code, here:

add_action( ‘after_setup_theme’, ‘yourtheme_setup’ );

function yourtheme_setup() {
add_theme_support( ‘wc-product-gallery-zoom’ );
add_theme_support( ‘wc-product-gallery-lightbox’ );
add_theme_support( ‘wc-product-gallery-slider’ );
}

Post count: 260

Hello
I insert in funtions.php files this code :
add_action( ‘after_setup_theme’, ‘yourtheme_setup’ );

function yourtheme_setup() {
add_theme_support( ‘wc-product-gallery-zoom’ );
add_theme_support( ‘wc-product-gallery-lightbox’ );
add_theme_support( ‘wc-product-gallery-slider’ );
}

But don’t work anymore.
I tried to move the code position inside the file but no change.
Of course deleted the cache.

What I have to do?

Regards

Post count: 35449

Hello,

In the last version of the theme the most theme functionality was moved in tagDiv Composer, you can check more about this in our article from here, now you need to set the code in this file -> wp-content/plugins/td-composer/legacy/Newspaper/functions.php

hope this will help you!
Thank you!

Post count: 260

Thanks

Just tried to insert the code:

add_action( ‘after_setup_theme’, ‘yourtheme_setup’ );

function yourtheme_setup() {
add_theme_support( ‘wc-product-gallery-zoom’ );
add_theme_support( ‘wc-product-gallery-lightbox’ );
add_theme_support( ‘wc-product-gallery-slider’ );
}

and it crashed the site.

On wich line will have to insert it and how?

Regards

Post count: 35449

Hello,

Here is an implementation for this code -> http://prntscr.com/pssfyd also please make sure that you set ”.
add_action( 'after_setup_theme', 'yourtheme_setup' );
function yourtheme_setup() {
add_theme_support( 'wc-product-gallery-zoom' );
add_theme_support( 'wc-product-gallery-lightbox' );
add_theme_support( 'wc-product-gallery-slider' );
}

-> http://prntscr.com/pssgv7

Thank you!

Post count: 260

I just paste the code like on your capture but it breaks another time the site! 🙁

/**
* tdStyleCustomizer.js is required
*/
if (TD_DEBUG_LIVE_THEME_STYLE) {
add_action('wp_footer', 'td_theme_style_footer');
// new live theme demos
function td_theme_style_footer() {
?>
DEMOS
BUY
<?php
}

}
add_action( 'after_setup_theme', 'yourtheme_setup' );
function yourtheme_setup() {
add_theme_support( 'wc-product-gallery-zoom' );
add_theme_support( 'wc-product-gallery-lightbox' );
add_theme_support( 'wc-product-gallery-slider' );
}
//td_demo_state::update_state("podcasts", 'full');

Post count: 35449

Hi,

Please send us an email at contact@tagdiv.com and provide admin login, as well as cPanel or FTP if possible. We will take a look. Include a link to this topic in the email.

Thanks

Post count: 260

Hello
Another time it is imposible to add the code without breaking the site.
Could you please tell us what you previously did?
Regards

Post count: 35449

Hi Thomas,

Here is what Simion C. did last time:

Hi,

That should still work fine, they haven’t made any modifications in this regard, it is still the same – https://github.com/woocommerce/woocommerce/wiki/Enabling-product-gallery-features-(zoom,-swipe,-lightbox) I tested it on my end and it works correctly. This is how it looks before adding the respective code – https://prnt.sc/qxroxw
After I added the code in the theme or child theme functions – https://prnt.sc/qxrpum Now there is zoom when hovering the product image – https://prnt.sc/qxrq5m there is a lightbox – https://prnt.sc/qxrqju and a slider for the gallery images – https://prnt.sc/qxrqyj SO it should be the same for you.

In your case I see you did not enter the code anywhere, the code can be entered in the main theme functions or in the child theme functions. I entered just the code for the lightbox in the main theme functions – https://prnt.sc/qxs5xz and it appears to be working fine – https://prnt.sc/qxs6tbhttps://prnt.sc/qxs703

I should mention that this addition in the main theme functions file will be lost after a theme update, you could use the child theme provided in the theme package and enter the code there. That way it will not be lost.
If you have more questions let me know.

Thank you!
Simion C.

Hope this will help you!

Viewing 11 posts - 1 through 11 (of 11 total)
The forum ‘Newspaper’ is closed to new topics and replies.