• Resolved pjhimseelf

    (@pjhimseelf)


    Hello there again,
    is it possible to show only the account icon without the “Hello -name-” on the right side?

    Thanks in advance
    PJ

    The page I need help with: [log in to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • Theme Author YITHEMES

    (@yithemes)

    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

    Thread Starter pjhimseelf

    (@pjhimseelf)

    Thank you for your answer ??

    PJ

    Theme Author YITHEMES

    (@yithemes)

    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 ??

    Thread Starter pjhimseelf

    (@pjhimseelf)

    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

    Theme Author YITHEMES

    (@yithemes)

    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 'https://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 ??

    Thread Starter pjhimseelf

    (@pjhimseelf)

    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 ??

    Theme Author YITHEMES

    (@yithemes)

    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

    Thread Starter pjhimseelf

    (@pjhimseelf)

    Thank you very much for your help, it worked <3

    Theme Author YITHEMES

    (@yithemes)

    You’re very welcome ??

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Account Icon’ is closed to new replies.