Hello @pranalipatel,
Yes I tried to desactivate the other plugins but I still have the problem.
I tried to change the code, using only
function rtmedia_custom_update_like_label_text( $label ){
$label ='<img src="http://cdn.shopify.com/s/files/1/1052/8468/t/4/assets/heart_icon2-15.png" />';
return $label;
}
add_filter('rtmedia_like_label_text','rtmedia_custom_update_like_label_text');
function rtmedia_custom_update_unlike_label_text( $label ){
$label = '<img src="https://cdn6.giltcdn.com/images/share/uploads/0000/0005/0526/505264777/icon.png" />';
return $label;
}
add_filter('rtmedia_like_undo_label_text','rtmedia_custom_update_unlike_label_text');
The icons work well when I click on them ( I like/I don’t like icons),
But when I like an image, if I close the lightbox and if I open it after, the red heart becomes an empty heart. (But below it is written that I like the photo which is ok)
If I remove this part of code to use the texts by default (I like it / I don’t like it), it works well…
Thanks,
Marine