Embedding Javascript
-
I need to do the following, but every time I try to put in the javascript code, it gets stripped out. Can anyone help this newbie out? I am using the Oxygen theme.
The JavaScript can be placed in one of the following places: (a) Locate your homepage. This is probably named “index.html” or “index.php” in your web root directory (likely to be named “public_html”). You may need to check with your host to determine what file this is. Paste the JavaScript anywhere in that file and save the file to your web server. (b) Paste the JavaScript anywhere within the template that is used on the homepage of your site. This is especially useful if your website is a blog. If your website is a blog, you may also place the JavaScript within a post that will be shown in full on the homepage until we are able to verify that it is there.
The blog I need help with is: (visible only to logged in users)
-
Those instructions apply to WordPress.ORG sites. Java script cannot be used on your WordPress.COM site. Because of security reasons, that kind of code is not allowed, and will be stripped out.
It would help to read about the difference between a .COM site and a .ORG site.
What were you trying to do with this code? There may already be a similar feature available for your site.
-
-
Thanks so much for your response! I am trying to do a JavaScript placement verification to complete my application to AvantLink.
-
You need to be very careful about affiliate links. Some are allowed in the body of a post, but not as a banner image ad. Terms of Service only allow WordPress.COM bloggers to advertise products or services they personally provide.
http://en.support.wordpress.com/affiliate-links/
Violations of ToS will get your blog suspended.
-
-
If you have any concerns, there is a contact form at the bottom of the link I provided. You can submit any questions for staff about what you want to do with AvantLink.
Good luck.
- The topic ‘Embedding Javascript’ is closed to new replies.