Thread Starter
nimavi
(@nimavi)
Thank you, but I wouldn’t like to modify that files, maybe an add_action method you can help me? I need to disable the link on the id #site-header-cart.
tnx For your help
Hello @nimavi!
Thanks for the follow-up!
If you would like to target a particular id tag (i.e., #site-header-cart) and remove pointer events, it can be done with some custom CSS. Under Customize > Additional CSS, you can add the following code:
/* Disable listener events for cart widget*/
#site-header-cart
{
pointer-events: none;
}
Also, please know this forum is dedicated to the core features and functionalities of WooCommerce.
If you are interested in further customizations to your site, please consult our guide here: https://woocommerce.com/customizations/
Hope this helps!
Hello @nimavi!
We haven’t heard back from you in a while, so I’m going to mark this as resolved – we’ll be here if and/or when you are ready to continue.
Thread Starter
nimavi
(@nimavi)
Thank you, but it doesn’t help, because I needed that mouse hover works.
Anyway, I got to resolve modifying a main theme .php file. Question when update the theme, how do I keep the changes?
Hi there @nimavi!
Glad to hear that you were able to achieve what you wanted.
Question when update the theme, how do I keep the changes?
You could create a child theme to override specific files without modifying the parent/main theme. Then, updates to the parent theme wouldn’t affect the code changes that you’ve done.
I hope this helps! 🙂