Header icon & widget
A wishlist icon with a live item count in your theme's header, and a wishlist preview for sidebars and other widget areas.
- The heart with a red count badge, just left of the cart icon
Header icon settings
A CSS selector for an element in your header, e.g. .cart-icon or #site-header .search-toggle. The icon sits just to its left. Blank tries common cart icons and header areas.
A selector for a wishlist icon your theme already shows, so visitors don't see two.
The same 10 hearts as the button, or Custom (upload). Custom icon appears only then: a small square image (SVG or PNG recommended).
Hidden at 0.
Adds "Wishlist (N)", linking to the wishlist page, to the WordPress admin bar on the storefront only (not in wp-admin). Needs the header icon enabled. The admin bar is only visible to signed-in users who can see it.
How it's placed
Once enabled, the icon is added to every page automatically (at the top of the page, through the theme's wp_body_open hook) and then moved into place:
- Next to the element in Anchor selector, if found.
- Otherwise next to a common cart icon (the Siteryn Mini Cart, the WooCommerce Mini-Cart block,
.cart-contents,.header-cart…). - Otherwise inside a common header area (
#masthead,.site-header…). - If none is found, it stays hidden rather than appearing in the wrong place: set an Anchor selector.
If your theme doesn't fire wp_body_open, print it in the header with [siteryn_wishlist_header] (no attributes; also listed in this tab's sidebar) or the PHP function \SiterynPro\SiterynWishlist\siteryn_wishlist_pro_header_icon() (include the namespace); it's then moved to the same anchor. The count updates live, and the icon links to the wishlist page.
Wishlist widget
Advanced → Wishlist Widget.
Then add Siteryn Wishlist (Pro) to a widget area (Appearance → Widgets; in block widget areas it's under Legacy Widget). Options: Title (default "My Wishlist"), Maximum items to show (5, up to 20) and Show price. It lists the visitor's wishlist items as links, updates live, and shows "Your wishlist is empty." when empty.