[wlfmc_wishlist_counter]
Shortcode “[wlfmc_wishlist_counter]
” 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:
[wlfmc_wishlist_counter show_icon="false"]
♦ 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:
[wlfmc_wishlist_counter show_button="false"]
♦ 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:
[wlfmc_wishlist_counter show_totals="false"]
♦ 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:
[wlfmc_wishlist_counter show_list_on_hover="false"]
♦ 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:
[wlfmc_wishlist_counter show_text="false"]
♦ 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:
[wlfmc_wishlist_counter show_counter="false"]
♦ 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:
[wlfmc_wishlist_counter show_products="false"]
♦ 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:
[wlfmc_wishlist_counter dropdown_products="false"]
♦ 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:
[wlfmc_wishlist_counter hide_zero_products_number="false"]
♦ 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:
[wlfmc_wishlist_counter add_link_title="false"]
♦ Wishlist Counter Text
counter_text (string)
Type your desired text for displaying beside your wishlist counter icon.
Default text is :”Wishlist -”
sample:
[wlfmc_wishlist_counter counter_text="Wishlist -"]
♦ 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:
[wlfmc_wishlist_counter button_text="View My Wishlist"]
♦ “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:
[wlfmc_wishlist_counter total_text="Total products"]
♦ 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:
[wlfmc_wishlist_counter products_number_position="top-left"]
♦ 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:
[wlfmc_wishlist_counter wishlist_link_position="after"]
♦ Maximum Products in Mini Wishlist
per_page (int)
Type the amount to the maximum products in mini wishlist.
sample:
[wlfmc_wishlist_counter per_page="20"]
♦ 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:
[wlfmc_wishlist_counter empty_icon="heart"]
♦ 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:
[wlfmc_wishlist_counter has_item_icon="pin-o"]
♦ 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:
[wlfmc_wishlist_counter icon_prefix_class="fas fa-"]
clear prefix and use prefix in empty_icon and has_item_icon sample:
[wlfmc_wishlist_counter icon_prefix_class=" " empty_icon="fas fa-heart" has_item_icon="fas fa-heart-o"]