Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #19746

    Hi!

    I wanted to disable the Woocommerce lightbox for the Product Gallery. When hovering over an item it presents the choice “Add to Cart” or “Show Details”. I’d like to disable the function altogether and just link directly to the product page.

    How do I go about doing this?

    Thanks in advance!

    #104838

    Hi,

    open up wp-contentthemespropulsionconfig-woocommerceconfig.php and replace:

    echo "<div class='thumbnail_container'>";
    echo "<div class='thumbnail_container_inner'>";
    echo get_the_post_thumbnail( get_the_ID(), 'shop_catalog' );
    echo $link;
    echo "<a class='button show_details_button $extraClass' href='".get_permalink($post->ID)."'>".__('Show Details','avia_framework')."</a>";
    if(!empty($rating)) echo "<span class='rating_container'>".$rating."</span>";

    echo "</div>";
    echo "</div>";

    with:

    echo "<div class='thumbnail_container'>";
    echo "<div class='thumbnail_container_inner'>";
    echo "<a class='button show_details_button $extraClass' href='".get_permalink($post->ID)."'>";
    echo get_the_post_thumbnail( get_the_ID(), 'shop_catalog' );
    echo "</a>";
    if(!empty($rating)) echo "<span class='rating_container'>".$rating."</span>";

    echo "</div>";
    echo "</div>";

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Woocommerce + lightbox’ is closed to new replies.