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

    Hi, is it possible to turn off the buttons that show on hover over the thumbnails of a product. And if it is possible would the image become clickable to view the full info etc.

    Thanks

    Mark

    #107007

    Hi,

    Edit woocommerce-config > config.php and find this code

    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>";

    Replace it with this code

    echo "<div class='thumbnail_container'>";
    echo "<div class='thumbnail_container_inner'>";
    echo "<a href='".get_permalink($post->ID)."'>".get_the_post_thumbnail( get_the_ID(), 'shop_catalog' )."</a>";
    echo "</div>";
    echo "</div>";

    Regards,

    Ismael

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

The topic ‘Turn off hover states on thumbnails of products’ is closed to new replies.