• Morning

    I’m trying to change the text and colour of the success message when using the wordpress sidebar widget.
    I’ve tried adding
    .mc_success_msg {
    color: #ffffff;
    margin-bottom: 1em;
    }

    to my own style sheet as i read elsewhere that this will override it but it doesn’t seem to.

    Thanks

    James

    http://wordpress.org/plugins/mailchimp/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hey James,

    Thanks for getting in touch.

    The approach of adding

    .mc_success_msg {
    		color: #ffffff;
    		margin-bottom: 1.0em;
    }

    to your theme’s CSS should do the trick as long as something else isn’t interfering. If you’d like to provide a link, we’ll be glad to take a look at your site and see what else may be going on there. We’re happy to help!

    Gabe

    Thread Starter jpryce

    (@jpryce)

    Thanks Gabe. There shouldn’t be anything odd with the sidebar. url is…
    http://www.jampvideo.com/newsite

    Cheers

    James

    Thread Starter jpryce

    (@jpryce)

    Sorry, on the how it works page…

    http://jampvideo.com/newsite/how-it-works/

    Hey James,

    Thanks for that link! I took a look and for some reason it looks like you’re theme’s style.css seems to have a lower priority than our plugin’s CSS, which is generally reversed. While there may be something in the site swapping which css file gets loaded with priority and swapping those could help, another solution is to add !important before the ; at the end of the lines within the .mc_success_msg snippet.

    So it would end up looking like this:

    .mc_success_msg {
    		color: #ffffff !important;
    		margin-bottom: 1.0em !important;
    }

    That should override the plugin’s CSS for you!
    Gabe

    Thread Starter jpryce

    (@jpryce)

    Thanks Gabe that worked. How do i change the actual wording?

    James

    Hi James,

    Thanks for writing back. The success message can be changed by editing the some of the plugins code. But I would warn you when the plugin is updated, these changes may not remain and would need to be reapplied.

    To change the code, in the wordpress admin area, click the Plugins menu on the left side > Editor. From the menu in the upper right, select MailChimp. Select the file mailchimp/mailchimp.php

    In the edit window, look for this section of the text.

    $msg = "<strong class='mc_success_msg'>".esc_html(__("Success, you've been signed up! Please look for our confirmation email!", 'mailchimp_i18n'))."</strong>";

    Edit the text between the double quotes and that will change the wording of the success message.

    Let us know if you have any other questions.

    Thanks!

    -mcd

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Success message’ is closed to new replies.