|
/ Documentation /Modern Cart/ Open the Cart Using a Custom Button or Link

Open the Cart Using a Custom Button or Link

The Use Custom Trigger feature in Modern Cart lets you open the cart tray using your own button or link, giving you full control over how users interact with the cart.

This option is available under the Floating Cart Icon settings in Modern Cart.

By using a custom trigger, you can enhance the cart experience by assigning any clickable element, such as a button, icon, or link, with a class or ID that triggers the cart tray.

How to Use the Custom Trigger Feature

  1. Go to WooCommerce > Modern Cart > Floating Cart Icon.
  2. Scroll to the Use Custom Trigger setting.
  3. In the input field, enter the element selector(s) that will trigger the cart. You can use #id, .class, or multiple selectors separated by commas.

For example, if you use a custom header created with Ultimate Addons for Elementor Lite, and you’ve added a Cart Widget with a class like .my-custom-cart, you can enter that selector into the field to make it act as the cart trigger.

See It in Action

Was this doc helpful?
What went wrong?

We don't respond to the article feedback, we use it to improve our support content.

Need help? Contact Support
On this page