• Resolved fcc2021

    (@fcc2021)


    Hello, I am using your theme that work well except for one thing.
    I want the customers to be anonymous, but when they put a review their name + surname show instead of their username. I use a plug-in named WCFM, they tried to change it giving me code snippet but nothing happened so they told me to contact you for help. Could you help me showing just the username in review ?
    Thank you

Viewing 14 replies - 1 through 14 (of 14 total)
  • HI @fcc2021
    Thanks for contacting to us.
    We have little confusion regarding your query.
    Firstly share your website URL and let me in which section of the theme you have issue.
    Kindly clear us, so that we can assist you better.

    Thanks
    Akhilesh

    Thread Starter fcc2021

    (@fcc2021)

    https://fétichic.fr/profil/modele2/avis-vendeur
    Its a exemple of reviews of a vendor from my site.
    Like you can see the reviews, it show the name of customer instead of username.

    Thread Starter fcc2021

    (@fcc2021)

    tell me if you need more information.
    waiting for an answer

    HI
    You added review section via third party plugin . This section doesn’t beloings to our theme section.
    So better assistance, Pls contact plugin author they will assist you better.

    Thanks
    Akhilesh

    Thread Starter fcc2021

    (@fcc2021)

    Hi, I have contacted the plugin author that gave me code snippet to fix it but nothing worked. He even tried with admin user but it does not work. That’s why I’m asking you here, the plugin author told me to.
    This is the code that is supposed to fix it :

    add_filter('get_comment_author', 'wcfm_comment_author', 10, 1);
            function wcfm_comment_author( $author = 'Anonymous' ) {         
                $comment_ID = get_comment_ID();
                    $comment = get_comment( $comment_ID );
                    if (!empty($comment->comment_author) ) {
                    if($comment->user_id > 0){
                    $user=get_userdata($comment->user_id);
                    $author=$user->user_login;
                    } else {
                    $author = __('Anonymous');
                    }
                    } else {
                    $author = $comment->comment_author;
                    }
                    return $author;
            }

    Can you please help me with this.

    Hi
    Pls, tell me which plugin are you using for your review section.

    Thanks
    Akhilesh

    Thread Starter fcc2021

    (@fcc2021)

    Its named WCFM Marketplace.
    Thanks

    HI
    We can hide the username but not change it.
    If you want to hide review author name indicated inside the snapshot.
    Kindly clear us, so that we can assist you better.

    Thanks
    Akhilesh

    • This reply was modified 3 years, 5 months ago by akhileshnagar.
    Thread Starter fcc2021

    (@fcc2021)

    Hi thanks for your answer but I don’t want to change it, I just want to show the username instead of the name + second name of the customer.
    Thanks.

    HI
    Sorry to say that but Dear its a third party plugin related issue.
    So pls contact to the plugin author , they will assist you better.

    Thanks
    Akhilesh

    Thread Starter fcc2021

    (@fcc2021)

    Like I told you he told me to ask you because he can’t do anything more.
    How can I hide the username if its possible ?

    HI
    To hide user name add the below css code inside the Appearance >> customizer >> Additional css box.

    .user_name {
        display: none;
    }

    Let me know for any confusion.

    Thanks
    Akhilesh

    Thread Starter fcc2021

    (@fcc2021)

    Hello thanks for the code, the problem is half resolved we still see name+username on top, I made a screenshot https://prnt.sc/17fyrkh.
    Waiting for an answer

    Hi
    For this add the below css code inside the additional css box.

    .lft.m10.reviews_count {
        display: none;
    }
    

    Thanks
    A

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Name in review’ is closed to new replies.