Home › Forums › WoodMart support forum › About translation of age verify popup
About translation of age verify popup
- This topic has 11 replies, 1 voice, and was last updated 2 years ago by puffgo.
-
AuthorPosts
-
March 5, 2020 at 4:58 am #177976
VucciParticipantHallo.
What is the translation of the age verify popup?
Theme Settings > Age Verify popup
I was able to edit the text here
I used Loco Translate to edit the button, Word not found.
The current text is the default.
“I AM 18 OR OLDER” and “I AM UNDER 18”
I want to edit the text above.Thank you.
March 5, 2020 at 7:15 am #177990
Elise NoromitMemberHello,
We shall fix it in our nearest update. Meanwhile, add this code to the functions.php of your child theme:
function woodmart_age_verify_popup() { if ( ! woodmart_get_opt( 'age_verify' ) ) { return; } $wrapper_classes = ' color-scheme-' . woodmart_get_opt( 'age_verify_color_scheme' ); ?> <div class="mfp-with-anim wd-age-verify<?php echo esc_attr( $wrapper_classes ); ?>"> <div class="wd-age-verify-text"> <?php echo do_shortcode( woodmart_get_opt( 'age_verify_text' ) ); ?> </div> <div class="wd-age-verify-text-error"> <?php echo do_shortcode( woodmart_get_opt( 'age_verify_text_error' ) ); ?> </div> <div class="wd-age-verify-buttons"> <a href="#" class="btn btn-color-primary wd-age-verify-allowed"> <?php esc_html_e( 'I am 18 or Older', 'woodmart' ); ?> </a> <a href="#" class="btn wd-age-verify-forbidden"> <?php esc_html_e( 'I am Under 18', 'woodmart' ); ?> </a> </div> </div> <?php } add_action( 'woodmart_after_footer', 'woodmart_age_verify_popup', 400 );
Best Regards
March 6, 2020 at 12:26 am #178207
VucciParticipantHallo
Thank you.
The following error is displayed.The snippet has been deactivated due to an error on line 2:
Cannot redeclare function woodmart_age_verify_popup.There is no problem waiting for the update.
At what time will it be?March 6, 2020 at 2:06 pm #178374
Elise NoromitMemberHello,
We cannot tell the exact date of the update release.
Please provide FTP we shall check the error.
Best Regards
March 7, 2020 at 1:43 pm #178533
VucciParticipantHallo.
Thank you for your reply.
Attach an image about the error.Attachments:
You must be logged in to view attached files.March 8, 2020 at 8:36 am #178599
Elise NoromitMemberHello,
You need to install and activate the child theme and insert the code into functions.php
Please do exactly in this way.
Best Regards
March 13, 2020 at 1:57 am #179654
VucciParticipantHallo.
It should have been inserted in the child theme, I get an error and it doesn’t work.
Is it caused by plug-in?
However, if you want to work without using the plugin, you probably have to wait for an update because of the lack of knowledge.Thank you.
March 13, 2020 at 8:20 am #179707
Elise NoromitMemberHello,
Can you wait till the theme is updated?
Best Regards
March 13, 2020 at 8:27 am #179712
VucciParticipantI can’t do it, so I can’t help.
We will wait, so please be able to edit the text of the age verification button freely.Thank you.
March 13, 2020 at 3:46 pm #179824
Elise NoromitMemberHello,
Ok. We shall. If you have any questions please feel free to contact us.
Best Regards
April 12, 2022 at 9:20 pm #368057
puffgoParticipantwell ?
its been 2 years!!April 12, 2022 at 9:22 pm #368058
puffgoParticipantthere seems to be several ways you have instructed us to edit the 18
pleas out line the simples way as of todaythank you
-
AuthorPosts
The topic ‘About translation of age verify popup’ is closed to new replies.
- You must be logged in to create new topics. Login / Register