If you’re wanting to replace all image markup with something custom, the best option is #2 – that way your new plugin controls everything relating to the gallery, and any future template overrides in WooCommerce will not affect it directly.
If it’s just the default lightbox you want to remove you don’t actually need to change markup or remove CSS classes; you can simply de-activate the feature. Thats explained here: https://github.com/woocommerce/woocommerce/wiki/Enabling-product-gallery-features-(zoom,-swipe,-lightbox)
Related Posts:
- How can I show an empty WooCommerce cart? [closed]
- Display product thumbnail in Woocommerce email notifications
- WooCommerce: Can’t use wc_get_products for custom REST API endpoints
- single-product.php template not working for single products [closed]
- How to get rid of the hover zoom in WooCommerce single products
- What’s the difference between WC() and $woocommerce
- Hook and send Woocommerce data after click Place Order button
- Show only geolocated user country into Woocommerce checkout country fields
- Extend Woocommerce rest api routes fails
- How do I add a text input field for customers to leave a note on a single WooCommerce product page?
- Remove action on product archive page [closed]
- display available size on hover, in woocommerce shop page [closed]
- Customize WooCommerce orders displayed shipping
- Which has more impact on site performance? Template overrides or hooks
- Is there a Woocommerce hook that fires when applying a coupon but before checking if it’s valid?
- What is the action hook for an order that fails on frontend checkout in WooCommerce?
- How to unhook a function in Woocommerce Template?
- Woocommerce template single-product.php in theme folder not working
- Disable Woocommerce product tags display by alphabetical order
- Using a filter with multiple parameters and $this
- WooCommerce: The model of e-mail is displaying only the html, not css [closed]
- Remove Order List Row Link in WooCommerce Admin?
- Get rid of product images mobile swipe functionality from WooCommerce single product [closed]
- Which hook should I use to capture $_POST(‘password’) via profile update and password reset
- Edit WooCommerce product content based on category
- WooCommerce template page for category
- woocommerce_package_rates not fired everytime
- differentiate hooks and filters on the same page [closed]
- show content of a page built using yootheme builder on different page/template
- ‘profile_update’ hook alternative for WooCommerce user meta data
- How to update custom field in WooCommerce
- Woocommerce specific product template for product type
- Add Stripe Connect data to wc_stripe_payment_request
- Redirect customer to login page (with other signup plugin) if user not logged in when proceeding to checkout
- How to subscribe free subscription on user registration in woocommerce subscription plugin?
- How to list all WC products by their attributes values?
- Showing the WordPress standard text area on a Woocommerce Single Product Page?
- Woocommerce Moving Review Below add to cart breaks button
- WooCommerce order complete email logic
- How to override Woocommerce functionality in Reports section?
- how can use woocommerce add to cart popup?
- How to Update the Order-Items While Editing an Order on the WooCommerce Admin Order Screen [closed]
- WooCommerce Hook: Content get’s displayed twice and not AFTER the order total
- How to re-arrange this hooked content?
- Woocommerce – Add HTML around Product description [closed]
- Woocommerce – Change the template?
- How to exclude a taxonomy from shop & search page wooCommerce?
- Redirect no product url’s to static url
- Different Templates for Woocommerce Parent and Child Sub Categories
- What Hook/Action is performed when a field in checkout form is changed in WooCommerce
- How to change a WooCommerce Subscription Deposit and Monthly Payment? [closed]
- How can I add a so i can show sale price under normal price
- password_reset doesnt work
- WooCommerce checkout page price break down table hook
- How to output woocommerce products to a page, style and modify the html structure
- Filter default_content only for products
- Woocommerce – Adding row to cart table
- Conditional action hook
- How can I override wp_price woocommerce function in my theme
- Custom template – query issues
- Conditionally run function based on custom meta value?
- manage_shop_order_posts_custom_column() hook is Not working In Functions.php file in my WordPress active theme
- Display custom product option in admin order details
- How to alter taxes amounts when updating an order
- How can i get the code of Shop Page Woocommerce?
- How to check if woocommerce_order_item_name is use in email?
- Hooks For Design variation in woo commerce single product page
- How to add woocommerce products header title in woocommerce_breadcrumb hook to function.php
- Use ID as slug for product category by default in WooCommerce?
- What is the problem with these lines of code?
- Woocommerce : Add name filed of checkout page to buyers wordpress display name
- Missing variable options on add to cart form
- call_user_func_array() expects parameter 1 to be a valid callback, class ‘WC_Rapyd’ does not have a method ‘install’
- Help to locate a woocommerce hook method
- check shipping amount in woocommerce_after_checkout_validation?
- How to display two different custom taxonomy terms on a WooCommerce single product page
- How to add (and change the font of) the short product description to order page and customer’s new order e-mail [closed]
- Woocommerce Disabling Auto Restocking for Cancelled Orders
- Parameters in woocommerce_before_add_to_cart_button hook
- Unable to call woocommerce hook in my custom php file
- Loading different header and footer in woocommerce templates (AMP)
- Custom WooCommerce template for product
- How can i add product Accessories from front-end using custom php form?
- woocommerce_add_to_cart custom function called several times
- How to track product price changes?
- Woocommerce – wc_cart_totals_shipping_method_label() breaking out option tag
- Remove username and account password field from checkout page
- Editing fields required in the WooCommerce / WordPress registration form [closed]
- Customize categroy catalog page
- Add to cart is not visible in product page
- Disable theme WooCommerce template [closed]
- Add suffix to price html does not work
- With what hook do I remove WooCommerce existing Product Data Tab form fields?
- How to hook in to WooCommerce Related Products
- Woocommerce: Unique price for individual basket items
- Hide add to cart when product variation has no price or is unavailable
- (WooCommerce) Conflict with template – Can’t load payment methods
- Hook woocommerce price in backend order edition
- WooCommerce Admin Only Email Hook
- Create woocommerce order on new user registration