Support » Plugin: Wishlist for WooCommerce » Request for a new hook

  • Resolved Vladyslav


    You have a great simple plugin that you really like, could you add a hook to change the icon so as not to edit the plugin code, now of course I will do it in the plugin and prevent it from updating, but if an update appears I will definitely fix my code

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Joris van Montfort


    Hi, you could modify the icon by overiding some CSS styling.



    .jvm_add_to_wishlist .jvm_add_to_wishlist_heart:before

    are the CSS selectors to look at.What part of the plugin are you changing for this? the jvm_woocommerce_add_to_wishlist function?

    Thread Starter Vladyslav

    line 57

    I changed only part of the button template

    Plugin Contributor Joris van Montfort


    Hi thank you for the screenshot. This could have been resolved with CSS, but I understand modifying the HTML might be more convenient in this case.

    I just rolled out a small update that includes a new hook: jvm_add_to_wishlist_icon_html. You can now modify the icon HTML by using:

    add_filter('jvm_add_to_wishlist_icon_html' function(){
      return '<span class="jvm_add_to_wishlist_heart"><i class="fas fa-heart"></i></span>';

    Not tested this code but it should work.

    Thread Starter Vladyslav


    Thanks, it works.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Request for a new hook’ is closed to new replies.