Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #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!

    #1081630

    Hey bobfurgo,

    Please refer to the following:

    Best regards,
    Jordan Shannon

    #1082848

    Hi Jordan,

    I’m just wondering if I can change the text from email address to your email address via editing the theme files.

    #1083150

    Hi bobfurgo,

    Please have a look in this file
    /enfold/config-templatebuilder/avia-shortcodes/mailchimp/mailchimp.php

    Best regards,
    Victoria

    #1083157

    Victoria,

    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!

    #1083596

    Hi bobfurgo,

    You need to copy this file to the child theme and make changes there.

    Best regards,
    Victoria

    #1088742

    Would 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?

    #1090639

    Hi,

    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,
    Basilis

    #1090683

    HI 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,

    #1091479

    Hi,

    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 theme

    function 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,
    Yigit

    #1093439

    Hi 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,

    #1093440

    Hi 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.

    #1094014

    Hi 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,
    Victoria

    #1094083

    Hi Victoria, it works. Thanks so much!

    #1094186

    Hi,

    I’m glad this was resolved. If you need additional help, please let us know here in the forums.

    Best regards,
    Jordan Shannon

Viewing 15 posts - 1 through 15 (of 15 total)
  • The topic ‘Newsletter widget in footer’ is closed to new replies.