Home Forums WoodMart support forum how i can hidden name in testimonials

how i can hidden name in testimonials

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #430333

    wadeakh
    Participant

    Hi
    I want to hide the name of testimonials like the picture
    Please see it
    see only the first and last letter >> (W****k)

    Attachments:
    You must be logged in to view attached files.
    #430450

    Hello,

    Can you please share the exact Page URL with us on which it is appearing on your Site? So that we can check and assist you accordingly.

    Best Regards

    #430458

    wadeakh
    Participant

    This image its on aliexpress
    I want to do in my website reveiws

    I try this code
    See the url
    https://stackoverflow.com/questions/62473837/change-review-author-name-to-first-and-last-letters-only-with-asterisks-between/62475569#62475569

    Its work but they see Anonymous not like w****y

    #430601

    Hello,

    Sorry to say but your concern is specifically related to Customization work and this is beyond our limitations and support policy scope. Hope you can understand our limitations.

    But if we can help out in hiding something with Custom CSS in this regard then we surely can do that. So, if there is something that you want to hide in this regard then kindly specifically mention that along with the Page URL on which they are currently added so that we can look after this and assist you accordingly.

    Best Regards

    #430616

    wadeakh
    Participant

    This option I would recommend that you make such an option on the website

    everything is fine i will do it myself don’t worry

    If you want at the end I can send you a code to update the template will be an option
    Because I have not seen it in any form and there is a requirement for it

    #430652

    Hello,

    We are glad to hear that you are capable enough to manage the issue yourself. You are Great 👍

    You can share the Code here (it might help others – if they want) and we will forward this to our Development Department for consideration to add it in the Theme, but we are not giving you the guarantee for that because please note that a Theme cannot satisfy all requirements as it may cause Theme heaviness. Sometimes it may require your own Customization. So if the development department finds it fit with the Theme environment then surely they will look through it in the upcoming Theme Updates.

    Thanks for your understanding.

    Best Regards

    #430677

    wadeakh
    Participant

    Sure
    Only i want to get this php file
    Where the file of the reviews on product?
    Can help me about this?

    #430726

    Hello,

    There are multiple Theme files related to Reviews, but there is major file that you can check which has the following location:

    wp-content/themes/woodmart/inc/integrations/woocommerce/functions.php

    In this file, from Line Number 1035 the Review template starts.

    Hope this helps !

    Best Regards

    #430856

    wadeakh
    Participant

    hii

    Please ask your development why it’s not working? what is missing in the code ?
    why not work ?
    i try with online code test its work, i changes the comment_author() -> to sample test
    see url
    https://onlinephp.io/c/980b8eb7-e516-4cff-8a7c-08921c76e161

    <p class=”meta”>
    <strong class=”woocommerce-review__author”>
    <?php
    $username = comment_author();
    $len = strlen($username);
    if ($len >= 2)
    echo $username[0] . str_repeat(“*”, $len – 2) . $username[$len – 1];
    else
    echo $username;

    ?>

    #430890

    Hello,

    Sorry to say but unfortunately we can’t help you out with this question because such Customizations are out of our Theme Support policy scope. Hope you can understand our limitations in this regard.

    Best Regards

Viewing 10 posts - 1 through 10 (of 10 total)