WordPress.org

Ready to get started?Download WordPress

Forums

Installing Javascript in a Blog Post (2 posts)

  1. JuliaMueller
    Member
    Posted 1 year ago #

    Hi there,

    I have a sponsored post that needs to go live tomorrow. I am supposed to install the following code into my post:
    <script language="JavaScript1.1" src="http://oascentral.blogher.org/RealMedia/ads/adstream_jx.ads/ReviewBadge/PG-eStore-Program_241/@x13"></script>

    I read that I need to create a javascript file and call out to the file within the post. I'm not really sure what this means. What steps do I need to take in order to get the code to work in my post?

    Thanks,

    Julia
    mueller.red@gmail.com

  2. 360
    Member
    Posted 1 year ago #

    Hello Julia,

    when you create a post on the right hand is a button VISUAL and HTML
    you can see something similar here:
    http://wordpresspluginguide.com/wp-content/upload-data/wp-plugin-ckeditor-for-wordpress.jpg

    insert the code you posted above when you view the post as HTML.

    please keep in mind that inserting javascript from unknown sources may lead to a security risk.
    I`m not sure if the Javascript is intended for some kind of tracking but so far it only displays:
    "This is sponsored content from BlogHer and P&G" so you could also insert this text at the footer of your post content.

    hope that helps :)

Topic Closed

This topic has been closed to new replies.

About this Topic