-
AuthorPosts
-
March 22, 2019 at 12:05 am #1081611
Hi guys,
I have a mailchimp newsletter in the footer and need the field to say “your email address”. Currently it says “email address”. Is there a way I can change this? I know it’s doable if I go within the theme files, but wouldn’t want to manually change it every time the theme gets updated, so is there a snippet I can add to the child theme’s functions.php?
Thanks!
March 22, 2019 at 1:00 am #1081630March 25, 2019 at 9:04 pm #1082848Hi Jordan,
I’m just wondering if I can change the text from email address to your email address via editing the theme files.
March 26, 2019 at 4:02 pm #1083150Hi bobfurgo,
Please have a look in this file
/enfold/config-templatebuilder/avia-shortcodes/mailchimp/mailchimp.phpBest regards,
VictoriaMarch 26, 2019 at 4:22 pm #1083157Victoria,
Is there a line of code I can put in child theme functions.php so it doesn’t get overwritten every time the theme gets updated?
Thanks!
March 27, 2019 at 1:50 pm #1083596Hi bobfurgo,
You need to copy this file to the child theme and make changes there.
Best regards,
VictoriaApril 9, 2019 at 5:20 pm #1088742Would you be able to assist further on how I can copy this file to the child theme? And then what changes would I need to make there?
April 14, 2019 at 3:51 pm #1090639Hi,
Unfortunately, it would require quite some time and customization of the theme to achieve this, so I am sorry to tell you that this is not covered by our support. However, if it’s really important for you to get this done, you can always hire a freelancer to do the job for you :)
Best regards,
BasilisApril 14, 2019 at 6:36 pm #1090683HI Basilis,
I feel you guys have helped with requests far more complicated than this. All i’m looking for is for the text displayed in the mail chimp newsletter widget field to say “enter email address” vs just “email address”. I know there is a way to enter a line into functions.php so that this doesn’t get overwritten every time the theme is updated, unless i’m missing something here. Would really appreciate if someone could help me with this.
Thanks so much,
April 16, 2019 at 4:09 pm #1091479Hi,
Have you tried editing your newsletter and changing the text in Mailchimp options?
If you would like to replace it using jQuery, please add following code to bottom of Functions.php file of your child themefunction av_replace_newsletter_text(){ ?> <script> jQuery(window).load(function(){ jQuery("#footer input#avia_0_2").attr("placeholder", "your email address"); }); </script> <?php } add_action('wp_footer', 'av_replace_newsletter_text');
Best regards,
YigitApril 22, 2019 at 11:43 pm #1093439Hi Yigit,
That worked, thanks so much!
I did try that, but when the newsletter is in the form of a widget it doesn’t show the option to be able to change the text of that field.
Thanks again guys,
April 22, 2019 at 11:50 pm #1093440Hi Yigit,
It looked like it worked for the homepage, but not for the rest of the pages. The rest of the pages on the site still read “email address” in the field area.
April 24, 2019 at 3:23 pm #1094014Hi bobfurgo,
https://imgur.com/a/R4j3MSm The element on other pages has a different id and so is not targeted by the script given to you.
Please try this code:
function av_replace_newsletter_text(){ ?> <script> jQuery(window).load(function(){ jQuery("#footer #avia_mailchimp_widget-2 input.text_input").attr("placeholder", "your email address"); }); </script> <?php } add_action('wp_footer', 'av_replace_newsletter_text');
Best regards,
VictoriaApril 24, 2019 at 5:30 pm #1094083Hi Victoria, it works. Thanks so much!
April 24, 2019 at 9:49 pm #1094186Hi,
I’m glad this was resolved. If you need additional help, please let us know here in the forums.
Best regards,
Jordan Shannon -
AuthorPosts
- The topic ‘Newsletter widget in footer’ is closed to new replies.