Hello there,
in the next theme update we will add a filter to achieve this and also the opportunity to overwrite the widget in your child theme 🙂
I hope you will appreciate it
Thank you for your answer 🙂
PJ
New Proteo version is live.
You can now use the filter yith_proteo_account_widget_text to override account widget greeting text with what you need (in your case an empy string).
I hope you will appreciate it 🙂
Hello there,
thank you very much for the notification. How can I use this filter? I can’t code, so unfortunately I don’t know how to use it.
Thanks in advance
PJ
Hi again,
you can add this code in your child theme functions.php file
add_filter( 'yith_proteo_account_widget_image_url', 'my_custom_account_icon' );
/**
* Show my custom account widget icon
*/
function my_custom_account_icon() {
return 'http://mysite.test/food/wp-content/uploads/2021/01/my-icon.png';
}
Please remember to change the image url with yours 🙂 You can retrieve it from the Media menu of WordPress after uploading it. Example: https://prnt.sc/wkthlx
I hope you will appreciate it 🙂
Hello there, thank you very much for your help 🙂
I tried to put the code in via snippet tool, but it is still saying “Hello -name-” on the right side of the account icon.
How is it possible to disable this?
Thanks in advance
PJ 🙂
the code works from version 1.4.5 or newer.
If you have still issues, you can add this CSS to achieve this
body a.yith-proteo-user-welcome-message span{
display: none;
}
This will hide the text
Thank you very much for your help, it worked <3