[oceanwp_woo_cart] Shortcode

This shortcode allows you to display a cart icon:

[oceanwp_woo_cart]

Here is a list of the different parameters:

  • class: If you want to add a custom class.
  • style: Choose between drop_down or custom_link, drop_down display the mini cart to the cart icon hover.
  • custom_link: If you want to add a custom link to the cart icon.
  • total: If you want to display the total of the cart.
  • cart_style: The style of the mini cart, choose between compact or spacious.
  • hide_if_empty: If you want to hide the cart icon if empty.
  • color: The color of the cart icon.
  • hover_color: The color of the cart icon on hover.
  • count_color: The color of the count inside the cart icon.
  • count_hover_color: The color of the count inside the cart icon on hover.

For example, if you want to add the cart total with a custom color, insert this shortcode:

[oceanwp_woo_cart total="true" color="#fe5252" hover_color="#222"]