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 display custom field in woocommerce orders in admin panel?
- How to load scripts/styles specific for a page
- functions.php inject inline css
- Logout/login redirect CSS issue
- How to Acheive the custom woocommerce category template
- How to add CSS style sheet dynamically in wordpress
- Simple/basic use of get_current_screen
- Remove product description from product archive page
- Is it possible to be more page/post specific with admin_enqueue_script?
- Hide some items from Screen options in dashboard for products
- CSS stylesheet not loading
- Issue adding text after short description on product pages Woocommerce [closed]
- Enqueue styles after a plugin
- Exclude Empty Child Categories in Menu
- change billing and shipping address 1 and 2 field placeholders [closed]
- Creating loop within functions.php
- How to add background image control to page admin controls?
- woocommerce target button with class after ajax update
- WordPress function for 1 to for many
- Add class or ID to any WordPress function
- change in form-checkout.php by using code in functions.php
- Multiple CSS body classes to specific page I.D.’s – is this possible?
- Product Tags in Add New product as checkbox list [closed]
- Enqueue Style Only On Certain Pages Not Working
- Why does the ‘wp_nav_menu’ function work only until a menu is created?
- I want to get product attirbute in the section below
- Load Woocommerce and WordPress Functions Outside
- change the url paths in the stylesheet dynamically
- When sale price is 0.00 show only regular price
- Remove the product category module block from the Woocommerce product page
- how can I edit flexslider in woocommerce. [Urgent]
- Please Explain the Importing Process of Multiple Stylesheets for Child Themes
- different style sheet for just one page template
- Functions when woocommerce isn’t installed
- Custom styles.css sheet for visual editor
- Is my code correct to enqueue CSS on a specific page?
- Not all CSS elements transferring via parent to child?
- Create custom function for hero image
- replace text in Sort Box
- add_filter to specific WooCommerce Category
- Woocommerce image sizes missing from Appearance › Customize but not declared by theme
- add referrer to woo
- Way to redirect all Product Sub Category to its Main category Page?
- How to insert class in each list of categories?
- Parent theme styles overriding child theme CSS [closed]
- I can’t add CSS with functions.php
- 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!
- How add body_class from wp_termmeta
- remove/hide wp-editor
- Page Template Won’t Load Correct CSS File
- define css class in functions.php
- Completely Disable WordPress RSS Feeds
- How to hide content on mobile in the functions.php file – woocommerce
- 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?
- 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]
- Show ‘Add to Cart’ on Out of Stock products
- Can’t load assets
- 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
- Can we have conditional CSS styling?
- CSS style and app.js not loading
- Post content overflows on my mobile phone
- Stylesheet does not load despite functions.php
- Problems adding a new field to product in cart
- Woocommerce Display Discount On cart
- function class doesnt work
- Help using ShortCodes to style whole chunks of the post
- how to remove a tag in the_category function
- Variable function names
- 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
- Conditionally apply css for a specific template part
- Execute jQuery with custom event listener after successfully add an item to the cart
- Which method is more correct for removing WooCommerce Extensions menu item?
- How to automatically add custom classes to headings in content area
- Insert menu into theme location depending on user logged in/out status
- Changing the color of post title [closed]
- Random text changing to weird icons in both admin & front end
- functions.php / replacing div’s with new ones?
- How to add margin underneath woocommerce total price amount -> productpages
- Display post_meta-by_key on product catalogue
- Image width issue in IE [closed]
- How do I make my child theme’s CSS update when I save it?
- reusing code in function and running it with loop
- Which template file to edit to edit homepage in Mystile [closed]
- “woocommerce_output_related_products” not working
- wp_head not injecting css
- sort by date in users
- Is it possible to set the first image from a gallery as the product image, rather than the featured image?