Shortcode “
” loads the content of the “wishlist-counter.php” template (the file is in the “templates” folder of the plugin. Shortcode Attributes:
♦ Show Icon Counter
show_icon (string)
You can change whether you want to display the wishlist counter icon or not.
Attributes:
- true : Show wishlist counter icon
- false : Don’t show wishlist counter icon
Sample:
You have not added any products to your wishlist.
♦ Wishlist Button Link
show_button (string)
This option enables showing the wishlist button link in the mini-wishlist.
Attributes:
- true : Enables wishlist button link
- false : Disables wishlist button link
sample:
♦ Total Product Text
show_totals (string)
Using this option you can display “Total Products” text in mini-wishlist.
Attributes:
- true : Shows total products text
- false : Hides total products text
sample:
♦ Show Product List on Hover
show_list_on_hover (string)
This enables the option to show products list on mouse hover over the wishlist counter.
Attributes:
- true : Shows product list on hover
- false : Doesn’t show product list on hover
sample:
♦ Show Wishlist Counter Text
show_text (string)
Enable this feature to display a custom text beside your counter icon.
Attributes:
- true : Enables custom wishlist counter text
- false : Disables wishlist counter text
sample:
♦ Show the Number of Products in Counter
show_counter (string)
Enable this option to show how many products are added to users’ wishlists.
Attributes:
- true : Shows number of products in counter
- false : Hides number of products in counter
sample:
♦ Show Mini-Wishlist Products
show_products (string)
This option allows you to show mini wishlist products.
Attributes:
- true : Shows Products in mini wishlist
- false : Hides Products in mini wishlist
sample:
♦ Show Products as Dropdown
dropdown_products (string)
You can display products as dropdown or a visible list in mini wishlist.
Attributes:
- true : show as dropdown (on hover or click)
- false : show as visible list
sample:
♦ Hide Zero Products Number
hide_zero_products_number (string)
If you have no product in your wishlist, you can set this option to show the zero number of products or not.
Attributes:
- true : Hides zero product number
- false : Show zero product number
sample:
♦ Add Link for Wishlist Counter Title
add_link_title (string)
You can add Wishlist Page link to counter title by enabling this option.
Attributes:
- true : Enables wishlist counter title link
- false : Disables wishlist counter title link
sample:
♦ Wishlist Counter Text
counter_text (string)
Type your desired text for displaying beside your wishlist counter icon.
Default text is :”Wishlist -”
sample:
♦ Mini Wishlist Button Text
button_text (string)
Here you can edit your custom text for mini wishlist button.
The default text is “View my Wishlist”.
sample:
♦ “Total Products” Text
total_text (string)
Using this, you can change the “Total Products” text in Mini Wishlist.
The default text is “Total Products”.
sample:
♦ Product Number Positions
products_number_position (string)
You can decide whether left or right position of your counter number.
Attributes:
- right : Right side of the text
- left : Left side of the text
- top-right : On icon – top right
- top-left : On icon – top left
sample:
♦ Wishlist Link Position
wishlist_link_position (string)
Choose the position of the “View My Wishlist” button in the mini wishlist dropdown.
You can decide if it displays before products or after products.
Attributes:
- after : After products
- before : Before products
sample:
♦ Maximum Products in Mini Wishlist
per_page (int)
Type the amount to the maximum products in mini wishlist.
sample:
♦ Empty Counter Icon
empty_icon (string)
Choose your empty counter icon here. You can choose whether 6 default icons or insert your custom SVG icon.
Attributes:
- heart
- tag
- plus
- gift
- star
- pin
sample:
♦ Counter Icon with Added Products
has_item_icon (string)
Also, choose your counter icon with added items. You can choose whether 6 default added icons or insert your custom SVG icon.
Attributes:
- heart-o
- tag-o
- plus-o
- gift-o
- star-o
- pin-o
sample:
♦ Icon Font
icon_prefix_class (string)
If you want to choose another icon font for your counter icons, you can change its prefix using this option.
To use other fonts, you should add your theme’s style file and font files to your theme. These shortcodes only replace classes, not the fonts themselves.
use font awesome for icon sample:
clear prefix and use prefix in empty_icon and has_item_icon sample: