- This topic has 7 replies, 2 voices, and was last updated 1 year, 7 months ago by
Leo.
-
AuthorPosts
-
November 11, 2020 at 12:40 am #1526352
Daniele
I wanted to know if it is possibile to remove image links after this CSS is applied.
/* VERSION 1 - Vertical Scrolling Thumbnails */ .woocommerce div.product div.images .flex-control-thumbs li { padding: 5px 5px 0 0; -webkit-box-sizing: border-box; box-sizing: border-box; } @media (min-width: 420px) { .woocommerce-page div.product div.images { display: -webkit-box; display: -ms-flexbox; display: flex; -ms-flex-item-align: center; align-self: center; } .woocommerce div.product div.images .flex-control-thumbs { -webkit-box-ordinal-group: 0; -ms-flex-order: -1; order: -1; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; -webkit-box-flex: 1; -ms-flex: 1 0 80px; flex: 1 0 80px; /* Adjust PX to suit width of thumbnails */ max-height: 425px; /* Adjust Height to Image height on desktop */ overflow: auto; } .woocommerce div.product div.images .flex-control-thumbs li { width: 100%; padding: 0 10px 10px 0; } }
Iβm trying this snippet of code:
add_filter(‘woocommerce_single_product_image_thumbnail_html’,’wc_remove_link_on_thumbnails’ );
function wc_remove_link_on_thumbnails( $html ) {
return strip_tags( $html,’‘ );
}
but I get this result: https://imgur.com/a/3DxT94Lthanks!
November 11, 2020 at 8:14 am #1527025Leo
StaffCustomer SupportHi there,
Any chance you can link us to the site in question?
You can use the private information field.
Let me know π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/November 11, 2020 at 9:19 am #1527135Daniele
The website is not public…let me see if I can push a copy on a dev server
November 11, 2020 at 11:30 am #1527273Leo
StaffCustomer SupportSounds good.
Let us know π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/November 11, 2020 at 10:59 pm #1527745Daniele
Here it is:
November 12, 2020 at 8:48 am #1528652Leo
StaffCustomer SupportTry this CSS:
.woocommerce-product-gallery .flex-viewport { pointer-events: none; }
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/November 12, 2020 at 11:48 am #1528856Daniele
yes it could work
November 12, 2020 at 4:31 pm #1529066Leo
StaffCustomer SupportGlad to hear π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/ -
AuthorPosts
- You must be logged in to reply to this topic.