Site logo

Archived topic

Woocommerce cart link class

3 replies · Started by Andrew on May 6, 2020

Viewing posts 1–4 of 4

Hi Tom & Team,

I need to add a specific class to the cart link in the header.

I saw it was constructed in the generatepress_wc_cart_link function but is there a snippet I could add to my child theme in order to add the needed class?

Thanks
Best regards

Hi there,

Unfortunately there isn't a filter there. Are you sure you can't use any of the surrounding classes to target it?

Hi Tom,

No problem, I thought so.

I need a specific class to trigger something in jQuery. Nevermind I'll add the needed class on document load with jQuery.

Appreciate the support as always :)

No problem! :)

This archived topic is closed to new replies.