Change Sale text on image single product

This topic has 17 replies, 4 voices, and was last updated 2 weeks, 4 days ago ago by Andrew Mitchell

  • Avatar: Creatica
    Creatica
    Participant
    January 17, 2025 at 11:22

    How can we change the Sale text on the sing product image
    we tried in the theme options see screenshots
    We tried with Loco translate

    Please, contact administrator
    for this information.
    Files is visible for topic creator and
    support staff only.
    16 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    January 17, 2025 at 11:43

    Hello, Creatica,

    Thank you for reaching out to us.

    Could you please provide temporary wp-admin access? We need to check your settings.

    To grant WP-Admin access, please proceed to create a new user account with an administrator role through your WordPress Dashboard. Once the account is established, you may securely transmit the username and password to us via the Private Content section designated for this purpose.

    Best Regards,
    8Theme’s Team

    Avatar: Creatica
    Creatica
    Participant
    January 17, 2025 at 13:10

    Our site is staging and If you want to access the admin panel of our site you will need to change your hosts file in Windows\System32\drivers\etc folder

    Please contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    January 17, 2025 at 13:13

    Hello, Creatica,

    Unfortunately, we are unable to log in. Could you kindly verify the credentials for us? Additionally, we would appreciate it if you could provide the URL of the product page shown in your screenshot.

    Have you also had the chance to review the translation of the XStore Core plugin?

    Best Regards,
    8Theme’s Team

    Avatar: Creatica
    Creatica
    Participant
    January 17, 2025 at 14:01

    Yes i will send you.
    Yes i review the xstore core translation in Loco and all the “Sale” strings are translated

    Please contact administrator
    for this information.
    Avatar: Justin
    Luca Rossi
    Support staff
    January 19, 2025 at 05:24

    Hi @Creatica,

    Could you please try adding this custom code under functions.php file locates in your child theme?

    
    add_filter('et_option_sale_icon_text', 'n2t_et_option_sale_icon_text', 999);
    function n2t_et_option_sale_icon_text(){
    	return 'ПРОМО';
    }
    

    Let us know how it goes!

    Avatar: Creatica
    Creatica
    Participant
    January 19, 2025 at 11:12

    Hi i tried and i get this message:
    Fatal error: Cannot redeclare n2t_et_option_sale_icon_text()

    Please contact administrator
    for this information.
    Avatar: Justin
    Luca Rossi
    Support staff
    January 19, 2025 at 11:24

    Hi @Creatica,

    It’s weird.

    We couldn’t see that custom code under functions.php file: https://prnt.sc/_xG6tzLmR6UF.

    Can you please double check again?

    Thank you!

    Avatar: Creatica
    Creatica
    Participant
    January 19, 2025 at 11:25

    i removed it because of the error. Now i put it again!

    Avatar: Justin
    Luca Rossi
    Support staff
    January 19, 2025 at 11:39

    Hi @Creatica,

    Did you change the password?

    We can’t login anymore.

    Best Regards,
    8Theme’s Team

    Please contact administrator
    for this information.
    Avatar: Creatica
    Creatica
    Participant
    January 19, 2025 at 11:52

    no, just there is an error wait to remove the code again. if you want you put the code. Try now.

    Avatar: Creatica
    Creatica
    Participant
    January 19, 2025 at 11:53

    If you want i can give you FTP too?

    Avatar: Justin
    Luca Rossi
    Support staff
    January 20, 2025 at 05:43

    Dear @Creatica,

    We hope this message finds you well.

    Could you kindly provide us with your FTP account details? This will allow us to add the necessary custom code to assist you further.

    Thank you in advance for your cooperation.

    Best regards,
    The 8Theme Team

    Avatar: Creatica
    Creatica
    Participant
    January 20, 2025 at 09:13

    Hi, here is the FTP access.

    Please contact administrator
    for this information.
    Avatar: Justin
    Luca Rossi
    Support staff
    January 21, 2025 at 13:38

    Hi @Creatica,

    We’ve added this custom code under functions.php file and the sale label is changed:

    
    add_filter('et_option_sale_icon_text', '_n2t_et_option_sale_icon_text', 999);
    add_filter('et_option_product_sale_label_text_et-desktop', '_n2t_et_option_sale_icon_text', 999);
    function _n2t_et_option_sale_icon_text(){
        return 'ПРОМО';
    }
    

    https://tinyurl.com/2985vqkp

    Best regards,
    The 8Theme Team

    Avatar: Creatica
    Creatica
    Participant
    January 21, 2025 at 13:49

    Yes it works now. Thank you very very much!

    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    January 21, 2025 at 13:49

    Dear Creatica,

    We trust our theme is enhancing your experience. Taking a brief moment to rate it with a glowing 5 stars on ThemeForest would be immensely appreciated. Your feedback holds significant value for us.

    Click here to rate now: https://themeforest.net/downloads

    Thank you sincerely for your ongoing support!

    Best Regards,
    The 8Theme Team

  • Viewing 17 results - 1 through 17 (of 17 total)

The issue related to '‘Change Sale text on image single product’' has been successfully resolved, and the topic is now closed for further responses

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.