Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author WPClever

    (@wpclever)

    Hi @erkange ,

    Thanks for contacting us.
    You can kindly try this code:

    <div class="header-wishlist">
    <a href="<?php echo esc_url( WPcleverWoosw::get_url() ); ?>" class="toggle">
    <i class="far fa-heart"></i>
    <span class="wishlist-count">
    <?php echo WPcleverWoosw::get_count(); ?>
    </span>
    </a>
    </div>
    Thread Starter erkangerici

    (@erkange)

    Thanks for reply, where should if put this code?
    header.php or?

    Plugin Author WPClever

    (@wpclever)

    Hi @erkange ,

    Please insert this code to where you would like to display the wishlist icon with [shortcode_wishlist]:

    if ( class_exists('WPCleverWoosw') ) {
    	function wpc_wishlist() {
    		$html = '';
    		$html .= '<div class="header-wishlist">';
    		$html .= '<a href="' . esc_url( WPcleverWoosw::get_url() ) . '" class="toggle">';
    		$html .= '<i class="fa fa-heart"></i>';
    		$html .= '<span class="wishlist-count">' . WPcleverWoosw::get_count() . '</span>';
    		$html .= '</a>';
    		$html .= '</div>';
    
    		return $html;
    	} 
    
    	add_shortcode('shortcode_wishlist', 'wpc_wishlist');

    See more here:
    http://prntscr.com/slehhp,
    http://prntscr.com/slehma

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Wishlist count icon to storefront theme’ is closed to new replies.