• Resolved vladoff9

    (@vladoff9)


    Hello! I have applied this shortcode

    function custom_wishlist() {
    	$url = WPcleverWoosw::get_url();
    	$icon_html  = "<div class='menu-item woosw-menu-item menu-item-type-woosw'><a href='{$url}'>";
    	$icon_html .= '<span class="woosw-menu-item-inner" data-count="0"><i class="fas fa-heart"></i> <span>Wishlist</span></span>';
    	$icon_html .= '</a></div>';
    
    	return $icon_html;
    }
    
    add_shortcode( 'wishlist', 'custom_wishlist' );

    Link to post:
    But it always shows one value “0”
    Please tell me how you can fix this?

    • This topic was modified 3 years, 10 months ago by vladoff9.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Wishlist count icon’ is closed to new replies.