We are excited to offer our partners this widget to inform and turn out voters!
How to use the widget:
For easiest implementation, simply embed this code block wherever you'd like it to appear on your site.
Note: You will need to substitute out the name of your organization in
data-utm-campaign = "partner-YOUR NAME"
For Example: data-utm-campaign = "partner-coca_cola" (no spaces!)
This will appear as:
If your website building platform supports it, you may want to put the
<script> line (the second line of the code) in the
<head> section of your page. This will improve loading time for your page.
Including language support with the widget
BallotReady.org can now be used in Spanish or Mandarin in addition to English. Once your users enter the Election Center through your site, they navigate to the language they prefer with any widget. However, you can also set up your widget so that they select a language when they enter their address, or provide the widget in one language by default. If you do not select a default language for the widget, users will always see whatever language they last selected on BallotReady.org, or they'll see English if they are a completely new user.
If you'd like to provide a language dropdown in the widget, you should use this code:
If you'd like to provide the language in a default language (English, Spanish, or Mandarin), you should include code like this:
The above code will provide the widget in Spanish to all users because it uses the language code "es-US-BallotReady." If you'd like to set a different default language, you'd use different language codes:
|Language | Language Code | Code example|
|English | "en-US-ballotready" |
data-default-locale = "en-US-ballotready"|
|Spanish | "es-US-ballotready" |
data-default-locale = "es-US-ballotready"|
|Mandarin | "zh-US-ballotready" |
data-default-locale = "zh-US-ballotready"|
This widget will give your audience access to BallotReady's Election Center, which will allow users to check their registration, make a plan to vote or return their ballot, and research the candidates and referendums on their ballot. If you'd like to direct people specifically to making a plan to vote, you can embed this widget instead. If you'd like to direct people specifically to research their ballot, you can embed this widget instead.
If you need assistance implementing the widget, feel free to contact us at https://civicengine.com/support.