Signup Module Generating CSS Classes with Numbers appended?

More
29 Jan 2011 20:26 #687 by kenlyle
It seems that the signup module is generating rather ridiculous class names with 4 digit numbers appended. This means that it's difficult to control elements like the text color in CSS.

I have a site with a dark background, and was running the module in transparency, but the black confirmation text was not readable, so had to make the module bg lighter.

So, there seems to be an assumption that the module will have a light background, which may not always be the case.

Let me know if I've missed something...

Thanks!

Please Log in or Create an account to join the conversation.

More
25 Feb 2011 13:01 #779 by pete
Hello ken,

These class names you're referring to (actually IDs) are needed for the javascript to allow more than one signup modules on the same page. We have added separate classes to each element to allow styling but you are right, the thank you text and error text after submission is missing that. Will be fixed in the next version. In the meantime you can edit the file /modules/mod_mailchimpsignup/tmpl/default.php Scroll to the very bottom to find three div elements.

Add class="mcsignupResult" to the one with id="mcsignupResult
Add class="tryAgain" to the one with id="tryAgain

Then you can use these classes in the css to style the elements.

Kind regards,
Pete

Please Log in or Create an account to join the conversation.