This topic has 12 replies, 4 voices, and was last updated 9 years, 7 months ago ago by Stan Russell
Hello,
I would like to know how I can change the link on the thumbnails.
When I add a product with multiple images the thumbnails pops up.
Is it possible to show the image on the main image position? I mean like the first image? So when the visitor clicks on the 2nd image it will show up above the thumbnails?
If not, how can I delete the pop-up link on the thumnail images?
Hello,
You need add this code in functions.php of your child theme or a parent theme:
function woo_remove_lightboxes() {
// Styles
wp_dequeue_style( 'woocommerce_prettyPhoto_css' );
// Scripts
wp_dequeue_script( 'prettyPhoto' );
wp_dequeue_script( 'prettyPhoto-init' );
wp_dequeue_script( 'fancybox' );
wp_dequeue_script( 'enable-lightbox' );
}
add_action( 'wp_enqueue_scripts', 'woo_remove_lightboxes', 199 );
Then lightbox will be disabled.
Thank you.
Regards,
Eva Kemp.
Awesome Eva, thanks a lot!
Now it works very good!
I have a little extra question.
I would like to move the add to cart button to right under the price.
I checked a few files: content-single-product etc.
But I can’t find the code to change.
Can you help me also with this?
Thanks for the great support!
Hello,
Could you please show a screenshot how you’d like “Add to Cart” button to be displayed?
Thank you.
Regards,
Eva Kemp.
Hereby the screenshot.
Hello,
As I see “Add to Cart” button is under the price.
Do you want to place it beside the price?
Regards,
Eva Kemp.
Hello,
Thanks for your reply.
Beside the price is also great.
Thanks!
Hello,
Is your issue solved now?
Also I can’t log to your site, if you need changes please provide us with link to the page and wp-admin access in Private Content.
Regards,
Robert Hall.
Hello Robert,
I still would like to know how I can change the position of the add to cart button.
Maybe Eva will still reply on my message.
I rather dont give any credentials.
Hello,
Try to add this code in functions.php file of the parent theme or your child theme:
remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_add_to_cart', 30 );
add_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_add_to_cart', 15 );
Thank you.
Regards,
Eva Kemp.
Thats awesome Eva, thanks 🙂
Hello,
you are welcome!
Regards,
Stan Russell.
The issue related to '‘Delete pop-up link on thumbnails’' has been successfully resolved, and the topic is now closed for further responses