Each product should have a unique class identifier in the body. Compare two product pages and depending on the theme you are using. Allot of them have a unique css identify.
Look for something like: postid- followed my numbers for example.
If you had something like:
<body class="product-template-default single single-product postid-3592 wp-custom-logo woocommerce woocommerce-page woocommerce-no-js shop-buttons-is-sticky">
Then you could target it using the postid-3592 class as its unique to that product page.
So you could do:
.postid-3592 .site-logo a { pointer-events: none !important; }
or for all products using a single product template you could use:
.single-product .site-logo a { pointer-events: none !important; }
Related Posts:
- Woocommerce – Switching Price for Category
- How to override woocommerce.css?
- Custom styles.css sheet for visual editor
- How can I use Woocommerce $product->get_attribute in functions.php? (if at all)
- Is my code correct to enqueue CSS on a specific page?
- How to change this simple code so that it sends the email notification after payment in WooCommerce?
- header_image() with CSS
- (Woocommerce) Order by price when entering specific category
- Not all CSS elements transferring via parent to child?
- Split Media Queries in different files!
- Some questions about how proper add 2 CSS file in a WordPress theme?
- problem loading stylesheets to wp_head dynamically
- Create custom function for hero image
- replace text in Sort Box
- add_filter to specific WooCommerce Category
- Woocommerce checkout field
- Woocommerce image sizes missing from Appearance › Customize but not declared by theme
- add referrer to woo
- CSS change in woo commerce Place Order Text [closed]
- Way to redirect all Product Sub Category to its Main category Page?
- How to insert class in each list of categories?
- Add Login/Logout Menu Item to Primary Nav “My Account” Submenu [Woocommerce] [closed]
- Parent theme styles overriding child theme CSS [closed]
- I can’t add CSS with functions.php
- Theme JS is available but theme CSS isn’t
- Proper Way to Load stylesheet on Condition
- Create a Woocommerce product widget with category filter
- This code works, but the way I integrated it is breaking the media uploader. How can I integrate it properly?
- Delay a function, any function!
- Default Nav Highlight
- Auto scroll to id on page load on all pages except home page. Only do this on mobile
- Custom styles in Tiny MCE with an external CSS file
- why can’t i add front.css to my frontpage.php
- get_template_directory_uri() links to child theme not parent
- How add body_class from wp_termmeta
- Adding product to WooCommerce cart [closed]
- Change WooCommerce add_to_cart Button Text?
- remove/hide wp-editor
- Getting out side of wp root folder from function.php using absolute path
- WooCommerce -> wc_enqueue_js not working [closed]
- Use existing image sizes for WooCommerce
- Page Template Won’t Load Correct CSS File
- current_page_item is missing inside wp_nav_menu
- define css class in functions.php
- Woocommerce Variable Product Dropdown for Custom Shop Template
- Completely Disable WordPress RSS Feeds
- How to hide content on mobile in the functions.php file – woocommerce
- Woocommerce Default sorting product by product type
- How to hide WooCommerce product title and short description to non logged in users?
- How to add custom metakey to shop_order page’s searching function?
- Advanced method to control cache of enqueued style/script
- localize_script but data changes dependent on product ID
- PHP function for horizontal Woocommerce thumbnails and badges
- Changing the HTML of notices in WooCommerce [closed]
- Change class woocommerce on function.php
- Show ‘Add to Cart’ on Out of Stock products
- Combine page types and Custom Taxonomy in a functions.php command
- Can’t load assets
- Hide ‘add to cart’ when certain value in dropdown is selected
- removing description tabs – single product page – breaks footer
- Link product attribute value to a URL – woocommerce
- How to reference different css (bootstrap) stylesheets for the header and body of a page?
- Remove text after a dot and a colon in Woocommerce product title
- When are the user meta fields created in the database? Admin vs Woo API REST
- price of product can’t return when get data of product in functions.php
- Woocommerce product price change
- Can we have conditional CSS styling?
- CSS style and app.js not loading
- Help with with my function for wordpress
- Post content overflows on my mobile phone
- Stylesheet does not load despite functions.php
- is_product_category(‘Services’) not working
- Problems adding a new field to product in cart
- Parent category as WOOCommerce Categories widget title
- Woocommerce Display Discount On cart
- Problem with my footer after changing WooCommerce Products Sorting [closed]
- How do I make a custom “Read More Blogs” button for my blog page
- function class doesnt work
- Help using ShortCodes to style whole chunks of the post
- Setting Up Child Theme To Take Priority
- how to remove a tag in the_category function
- Reference multiple style sheets, clearing styles for permalink page, custom fields for css
- CSS disabled after getting rid of emoji
- Variable function names
- How to add styles in existing function?
- Override plugin function to show invoices even if not logged in
- how can I change the read more link destinations and direct all to the same page?
- Woocommerce custom calculation function
- button to toggle css styling / div visibility?
- add product thumbnail to checkout page only and include variation name
- Adding a class to the body of an inactive site using multisite
- Echo a String Based On Geolocation? [Woocommerce || ACF]
- Conditionally apply css for a specific template part
- How do I dequeue a Stylesheet, stored in an ‘Assets’ folder?
- Execute jQuery with custom event listener after successfully add an item to the cart
- Move product attributes after summary on single product page
- Child Theme not loading multiple stylesheets
- Which method is more correct for removing WooCommerce Extensions menu item?
- Show number of sold products but be first for less than 2
- Correct way of Enqueue self hosted fonts in sass project