|
/ Knowledge Base /Developer Docs/ The Cart Menu Icon Shortcode

The Cart Menu Icon Shortcode

Sometimes you will want to add the cart menu icon outside of your WordPress menus, or perhaps you are using a page builder that does not pull in default WordPress menus.

If you are not using the block editor, you can use the sc_cart_menu_icon shortcode to achieve this.

[sc_cart_menu_icon cart_icon="shopping-bag" cart_menu_always_shown=1]

This shortcode uses the following parameters:

  • cart_icon – Either “shopping-bag” or “shopping-cart”. Shows the specific cart icon of your choice.
  • cart_menu_always_shown – Either 1 or 0. If you choose 0, the icon won’t show up unless you have added something to your cart.

Find more of such helpful shortcodes in our list of shortcodes.

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

WAIT!!

You’re Missing the Biggest Discount of the Year!

Grab this rare opportunity to save up to 50%

00
Months
00
Days
00
Hours
00
Minutes
00
Seconds
00
Months
00
Days
00
Hours
00
Minutes
00
Seconds

Act Fast! The Biggest Sale of the Year is Live for a Limited Time!

Download is Just A Click Away!

Enter your email address and be the first to learn about updates and new features.

E-Commerce Store Launch Checklist Download
Scroll to Top