Delete pop-up link on thumbnails - by luciano

This topic has 12 replies, 4 voices, and was last updated 9 years, 7 months ago ago by Stan Russell

  • Avatar: luciano
    luciano
    Participant
    April 10, 2015 at 17:52

    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?

    Please, contact administrator
    for this information.
    11 Answers
    Avatar: Eva
    Eva Kemp
    Support staff
    April 10, 2015 at 18:43

    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.

    Avatar: luciano
    luciano
    Participant
    April 11, 2015 at 12:51

    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!

    Avatar: Eva
    Eva Kemp
    Support staff
    April 12, 2015 at 09:06

    Hello,

    Could you please show a screenshot how you’d like “Add to Cart” button to be displayed?

    Thank you.
    Regards,
    Eva Kemp.

    Avatar: luciano
    luciano
    Participant
    April 12, 2015 at 14:11

    Hereby the screenshot.

    Screen

    Avatar: Eva
    Eva Kemp
    Support staff
    April 12, 2015 at 15:04

    Hello,

    As I see “Add to Cart” button is under the price.
    Do you want to place it beside the price?

    Regards,
    Eva Kemp.

    Avatar: luciano
    luciano
    Participant
    April 12, 2015 at 17:53

    Hello,

    Thanks for your reply.

    Beside the price is also great.

    Thanks!

    Avatar: Robert Hall
    Robert Hall
    Support staff
    April 13, 2015 at 10:45

    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.

    Avatar: luciano
    luciano
    Participant
    April 13, 2015 at 11:14

    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.

    Avatar: Eva
    Eva Kemp
    Support staff
    April 13, 2015 at 17:44

    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.

    Avatar: luciano
    luciano
    Participant
    April 13, 2015 at 22:57

    Thats awesome Eva, thanks 🙂

    Avatar: stan
    Stan Russell
    Participant
    April 14, 2015 at 07:18

    Hello,

    you are welcome!

    Regards,
    Stan Russell.

  • Viewing 12 results - 1 through 12 (of 12 total)

The issue related to '‘Delete pop-up link on thumbnails’' has been successfully resolved, and the topic is now closed for further responses

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.