Yes you can for example target the link itself inside the trending id with CSS and remove the action with CSS itself, in your place it would be something like this:
#trending > li.product > a {
pointer-events: none;
cursor: default;
}
Note that this is CSS scheme, not exact CSS, that deppends on classes you have (I would be more specific if you provided link). But the point is you are targeting <li> inside #trending id and link inside <li> itself and you are disabling any events, so that will do the job.
I hope this helps.
Related Posts:
- Function returns text instead of html [closed]
- How to remove coupon dropdown feature
- Add html link in functions.php files of the theme
- How to rename woocommerce-billing-fields
- PHP function for horizontal Woocommerce thumbnails and badges
- Remove span tags from WooCommerce Downloads page
- Use Search Term in html link and redirect
- Custom woocommerce payment gateway – Form
- sessionStorage saves input value in browser but it is not loaded in the form field
- Woocommerce custom attributes list help
- WooCommerce multiple custom fields code
- Can’t make product images clickable
- WooCommerce – Print Processing orders [closed]
- How to create a container in php then customise it in CSS
- Endpoint exists and shows up in My Account dashboard. Need to add endpoint to My Account DROPDOWN menu in Porto theme
- Woocommerce get selected shipping zone id for the current user
- WordPress Ajax always returns a 404 error
- Cleanest/Fastest way to avoid calling and retrieving data from the database multiple times?
- How to show order data by multiple ID?
- Problem with Woocommerce REST API Authentication
- WordPress Wysiwyg Content not being displayed
- Remove General Tab and Plugin Tab in Settings in Woocommerce
- WooCommerce – Display variation custom field value [closed]
- Woocommerce HTML email option unavailable
- How to change / delete product short description in Woocommerce
- How do I add HTML to a PHP function [closed]
- How to trash multiple post/product programmatically
- OrderItem get_total() returns lower value than $order_item->get_product()->get_price() * quantity
- WordPress automatically adding html tag around PHP code
- Missing sidebar parameter “fix” – before_content
- Setting up 2 SMTP accounts: 1 for wordpress and 1 for woocommerce
- How to get the POST TITLE using the POST ID?
- WooCommerce – Reset quantity input field when variation changes
- Custom Text in WooCommerce Order Processing Email Based on Products
- Automatically remove a canceled order in Woocommerce
- Load a page into a div with Ajax
- Converting HTML Template to WordPress Theme
- Pass Category Name, Description and Photo into variables to pass to jQuery
- Different Minimum Order Amounts based on Shipping Zone [closed]
- Displaying Woocommerce Product Category in WordPress
- Displaying custom taxonomy on WooCommerce product page
- Change “add to cart” button color based on Woocommerce product category [closed]
- Add to cart function not working for first product when cart is empty [closed]
- Woocommerce : Can’t get product info in loop
- Dot is not added at the end of href
- Add .htm extention to a custom taxonomy
- Is there a way to hook or call a custom woocomerce template that is not part of the default templates of woocommerce?
- get taxonomy thumbnail and use it as a variable in code
- Single Quotes in .php file doesn’t load website
- Add data-id attribute to child page links
- How to upload WP user avatar on woocommerce account page [closed]
- How to relocate paypal button gateway on checkout page in woocommerce
- Prevent redirect to wp-login.php
- Only show size attributes in product box woocommerce when available
- How do I run code every 24 hours?
- Woocommerce Product_cat for current category page
- How to use the checked() function to check for a non-empty var
- Find out last 7 days of upload images, last week uploaded image from Gallery and display them in different pages
- WooCommerce “Checkout Now” button [closed]
- Custom forms with HTML
- Wrap title and excerpt in a div (latest posts block)
- Woocommerce. Get a list of products in the current category on the archive page and product page
- how to changes mobile menu toggle breakpoint in WordPress
- How can I enter on the Thank you page in woocommerce the discount code I assigned to the product category?
- PHP inside echo HTML
- Woocommerce append shipping method form
- What are the advantages/disadvantages of ways to use php template files?
- How do I check if a product is in two categories?
- php code for outputting a custom page in my account
- Hide specific shipping methode depending on day and time of day
- Adding custom field to product category and show it to shop/category shop page
- How to hide a div section when user is logged in, in single product woocommerce
- How to enable HTML tags in category description without breaking the category page
- Can’t display anything through homepage text editor
- Global variable doesnt’t pass to another function
- Exclude category from woocommerce product category list
- Edit woocommerce_product_archive_description using hook
- How to empty price of simple and variable product when product changed into out off stock
- How to create loop inside wordpress function?
- How to auto-generate random numbers in username?
- Remove generated category and tag class names from woocommerce product & blog listings markup
- How to echo a PHP code into WooCommerce variation product?
- Get Billing Email from WooCommece Checkout and Pass to Fullstory JS
- Global filter not working
- Code works on page-example.php by not category-example.php
- WooCommerce remove_action and add_action [closed]
- Add options to WordPress backend
- Automatically create a loop for post ID
- Save Option on Database
- How to add margin underneath woocommerce total price amount -> productpages
- How to find the value of the user password in wordpress and send it to another server via rest api
- Change Checkout “Place Order” text if cart has a specific product
- Sorting Problem
- Custom HTML/CSS Theme into WordPress – SEO considerations
- How to enqueue structured data as file – jsonld file seems not to work
- Woocommerce – Include custom user meta in order ‘filter by registered customer’ Ajax search
- Slick slider not working on wordpress
- Change WooCommerce Order status from frontend form submitted data
- “Joined in” or “Member since” displayed on single store page and then using shortcode to add
- Woocommerce Select Option Popup [closed]