Please submit a private ticket if you need to share sensitive information, such as license details and admin credentials.

Okay
  Public Ticket #3114745
change the wishlist label with html icon
Closed

Comments

  • Saleh started the conversation

    hi dear

    Before updating to version 4.3.1, I was using this code to change the wishlist label to html icon without problems:

    add_filter( 'woosw_menu_item_label', 'replace_wishlist_text_on_menu', 99, 2 );
    function replace_wishlist_text_on_menu ($html){
        $html = '<i class="od-heart3"></i>';
          return $html;
    }

    but after upgrade to version 4.3.1, my html code  Convert special characters to HTML entities: https://ibb.co/wL24hDf

    Please guide me how to fix this problem

    thanks

  •  767
    Janilyn replied

    Hi Saleh,

    Thanks for contacting us here. We have been off for a long vacation so today (5th September 2022) we are able to reach back to you.

    We've got your issue. I have assigned one of our developers to help you with that. 

    He’ll be looking into your question and responding with specific instructions as soon as possible. 

    Please stay patient as we're having very heavy workloads, it might take some time for our developers to reach back.

    Best regards.


    Janilyn T. - WPClever Support Agent

  •  153
    Henry replied

    Hi,

    Please add the below custom code (How to add custom code?)

    // Wpclever team support ticket-3114745
    add_filter( 'woosw_menu_item', 'woosw_wishlist_icon_on_menu', 99 );
    function woosw_wishlist_icon_on_menu( $menu_item ) {
        return '<li class="menu-item woosw-menu-item menu-item-type-woosw"><a href="' . esc_url( WPCleverWoosw::get_url() ) . '"><span class="woosw-menu-item-inner" data-count="' . esc_attr( WPCleverWoosw::get_count() ) . '"><i class="od-heart3"></i></span></a></li>';
    }

    Best regards,
    Henry N.