Need help? Check out our Support site, then


How to create a page with Javascript content on WordPress

  1. Hello,
    I am quite new with WordPress and have been spending almost two weeks trying to work out how to embed JavaScript on a WordPress page. I have a domain and using WordPressas as a website and not as a blog (I am not sure if this last sentence makes any sense). I have been reading plenty of tutorials on JavaScript not working on WordPress, others saying it works and explaining how to activate the JavaScripts from the header, others from the footer and so on, but at the end of the day I am still here with nothing gained.
    Is there anyone who is willing to give me any support please.
    I would actually need an answer for dummies please.

    The following are the two pages I am tryng to set up:

    http://www.progettofamilia.org/experiment
    http://www.progettofamilia.org/chi-siamo/team

    Thank you for any support.

  2. You did not specify a blog address or reason for posting when you created this topic.

    This support forum is for blogs hosted at WordPress.com. If your question is about a self-hosted WordPress blog then you'll find help at the WordPress.org forums.

    If you don't understand the difference between WordPress.com and WordPress.org, you may find this information helpful.

    If you forgot to include a link to your blog, you can reply and include it below. It'll help people to answer your question.

    This is an automated message.

  3. The link you posted above are not to a free hosted WordPress.com blog and you are posting to the wrong support forum. We cannot help you here. You must post to http://wordpress.org/support/

    This is a multiuser blogging platform. I don't know why you did not locate this entry in the support documentation. You cannot use JavaScript on a free hosted WordPress.com blog as the software will strip the code to provide security and stability. WordPress.com vs WordPress.org: The Differences.

  4. That site is self-hosted so you need to follow the link the supportbot gives to the wordpress.ORG forums.

  5. G'day Timethief!!!!

  6. G'day to you thesacredpath :)

  7. My customer want to move his site to wordpress.com, so I started moving the content and text. Now I don't know how to move the floor plans, which are an image map with open new browser window on roll over.

    Here is an example of the pages I need to put in my new wordpress plateform.
    http://ledalymorin.com/plans.shtml

    Any clues on how to do that ? I was thinking I could leave the plans alone on that site, and on the wordpress site make a link, but it would be nicer to have it all in the same place.

    http://ledalymorin.wordpress.com/

    Thank you

  8. @maletarte: Your question is not related to JavaScript content. For the sake of organization, please start a separate topic and we'll take it from there:
    http://en.forums.wordpress.com/?new=1

  9. Ehi "Mr. Organizer" don't take it too seriously!
    As I said already, I am new to WordPress and I did not know there were two different blogs!
    You are just repeating what timethief and supportbot said 10 days ago!

  10. He was replying to maletarte who is asking about a different issue and to prevent confusion for those that may come to threads in the future, we ask them to start a new topic.

  11. Well I would like the answer. I'd like to share the Tripit badge. After entering the code, on my page, upon saving wordpress eats everything javascript related.
    The javascript looks like
    <div id="tripit-badge"><script type="text/javascript" src="http://www.tripit.com/account/badge/id/SOMEPRIVATECODE/div_id/tripit-badge/badge.js"></script><noscript><a href="http://www.tripit.com/">TripIt - Organize your travel</a></noscript></div>

  12. You can post the source code for the badge using the sourcecode shortcode as explained in this support document.

  13. Hmmm, not what I had in mind. I don't want my visitors to show the source code, I want the javascript to be executed for my visitors.
    When I type in the above code in the HTML section when editing the page, and I then hit the save button, wordpress.com reduces it to:

    <div id="tripit-badge"><a href="http://www.tripit.com/">TripIt - Organize your travel</a></div>
  14. @mikereys

    javascript is not allowed on WordPress.COM for security and reliability reasons.

    http://en.support.wordpress.com/code/

Topic Closed

This topic has been closed to new replies.

About this Topic