• Hi WPClever Team,

    You provide two shortcodes with the plugin but it’s kinda surprising to me that none of them output the actual wishlist icon(the one appended automatically to the menu). The wishlist icon doesn’t really work with Nav Menu widget in Elementor.

    It would be very nice to have a shortcode to output the trigger icon anywhere we want.

    (or maybe you have to way to output the icon?)

    Thank you

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter jayakornk

    (@jayakornk)

    A quick shortcode that works thanks to the script that got enqueue.

    php
    
    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' );
    
    Plugin Author WPClever

    (@wpclever)

    Thank you so much!
    We’ll add this shortcode to our plugin soon.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Feature Request] Wishlist Shortcode’ is closed to new replies.