WordPress.org

Ready to get started?Download WordPress

Forums

How do I add javascript to a page? (3 posts)

  1. Daniel
    Member
    Posted 1 year ago #

    Hi I want to add some javascript that will load some function likes news widgets for exaple. But I understand after reading in the forum that you just can add the code straight away into the WYSIWYG editor - nothing happens..
    For example I wish to add this code:

    <script type="text/javascript" src="http://www.earnforex.com/js/embed/pip-value.js"></script>

    But how do i get it working in wordpress. - coding is not my strong skill set at all. I know a little html for householding keeps but that's it.

    Thanks..

    Daniel

  2. mar1965
    Member
    Posted 1 year ago #

    Hi Daniel,

    Enclose the above snippet of code within a '<div>' like this:

    <div>
    
    <script type="text/javascript" src="http://www.earnforex.com/js/embed/pip-value.js"></script>
    
    </div>

    That should work!

  3. Daniel
    Member
    Posted 1 year ago #

    Great, Thank you - I'll try that out!

    [sig moderated as per the Forum Rules]

Topic Closed

This topic has been closed to new replies.

About this Topic