Java Script Problems

  • Unknown's avatar

    Hi guys, i have been trying to add java script codes on my text widget, but when i save and display, the widget just can’t read the code, and it keeps deleting or rearranging it. The one code i have been trying to put is subscriber pop-up from mailchimp. Here is da code………..<script type=’text/javascript’ src=’//s3.amazonaws.com/downloads.mailchimp.com/js/signup-forms/popup/embed.js’ data-dojo-config=’usePlainJson: true, isDebug: false’></script><script type=’text/javascript’>require([‘mojo/signup-forms/Loader’], function(L) { L.start({‘baseUrl’:’mc.us14.list-manage.com’,’uuid’:’f0e6fb025f4c5ad33892c3e86′,’lid’:’7201ab2f18′}) })</script>………but the widget keeps delete stuff and rearranging it to this……[mailchimp_subscriber_popup baseUrl='mc.us14.list-manage.com' uuid='f0e6fb025f4c5ad33892c3e86' lid='7201ab2f18' usePlainJson='true' isDebug='false']……..Can you please assist me. Thank you.

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    Aloha phaniinvestors, In general, you are not allowed to add JavaScript on WordPress.com due to security concerns. Here are the types of code that are allowed on WordPress.com:
    https://en.support.wordpress.com/code/

    Since you are using MailChimp, you could try the Subscriber Popup Form:

    Add a Mailchimp Pop-Up

  • Unknown's avatar

    Hi Geoffrey
    This does not work, when i take this code…..
    ————————————————————————–
    <script type=”text/javascript” src=”//s3.amazonaws.com/downloads.mailchimp.com/js/signup-forms/popup/embed.js” data-dojo-config=”usePlainJson: true, isDebug: false”></script><script type=”text/javascript”>require([“mojo/signup-forms/Loader”], function(L) { L.start({“baseUrl”:”mc.us14.list-manage.com”,”uuid”:”f0e6fb025f4c5ad33892c3e86″,”lid”:”7201ab2f18″}) })</script>
    ——————————————————————————
    ……from mailchimp, and place it in the widget MailChimp Subscriber Popup, the code automatically changes, and looks like this……..
    —————————————————————————–
    [mailchimp_subscriber_popup baseUrl=’mc.us14.list-manage.com’ uuid=’f0e6fb025f4c5ad33892c3e86′ lid=’7201ab2f18′ usePlainJson=’true’ isDebug=’false’
    —————————————————————————-
    …….then the pop up does not work. Can you test this and see what i’m saying.

  • Unknown's avatar

    We have code restrictions at wordpress.COM. No javascript or iframe embeds from unsupported sources or third party advertising codes can be used on any wordpress.COM hosted sites.
    https://en.support.wordpress.com/code/
    https://en.support.wordpress.com/code/#html-tags
    https://en.support.wordpress.com/code/#javascript

    The only code that will work on a wordpress.com hosted site is the mailchimp widget code.

    All support docs are at https://en.support.wordpress.com/
    Search for mailchimp there https://en.support.wordpress.com/?s=mailchimp
    Results https://en.support.wordpress.com/mailchimp/

  • The topic ‘Java Script Problems’ is closed to new replies.