WordPress.org

Ready to get started?Download WordPress

Forums

embedding Fundrazr.com javascript in a post (4 posts)

  1. Marco_Borselli
    Member
    Posted 10 months ago #

    Hi there,

    Has anybody ever managed to embed some javascript from Fundrazr.com in a wordpress post?

    I've tried several times but it doesn't work and I can't seem to find a plug in that could help me. I am trying to embed the following:

    <script>(function() {
    var d = document, fr = d.createElement('script'); fr.type = 'text/javascript'; fr.async = true;
    fr.src = ((d.location.protocol.indexOf('https') == 0)? 'https://s-' : 'http://') + 'static.fundrazr.com/widgets/loader.js';
    var s = d.getElementsByTagName('script')[0]; s.parentNode.insertBefore(fr, s);
    })();</script>

    I know nothing about javascript, so if anybody could write a solution for dummies I would be wordpressly grateful!

    Thank you!

  2. aksteve
    Member
    Posted 9 months ago #

    I actually wrote Fundrazr support about this. They said that wordpress tends to strip javascript from source code before loading the page for a visitor.

    I don't know if that is true or not. But if Fundrazr is going to work in wordpress whatever the issue is had to be resolved.

    It's a pity. Fundrazr is a pretty sweet crowdfunding resource.

  3. WPyogi
    Volunteer Moderator
    Posted 9 months ago #

    You can use Javascript - you just have to use it properly - see:

    http://codex.wordpress.org/Using_Javascript

    Did you try this plugin?

    http://wordpress.org/plugins/insert-javascript-css/

  4. aksteve
    Member
    Posted 9 months ago #

    Thanks for the info. I am not actually using Fundrazr but the plugin info is really helpful.

    Hope Marco_B reads this.

Reply

You must log in to post.

About this Topic