Title: How can I add this javascript code?
Last modified: August 24, 2016

---

# How can I add this javascript code?

 *  [VerstandigMens](https://wordpress.org/support/users/verstandigmens/)
 * (@verstandigmens)
 * [11 years ago](https://wordpress.org/support/topic/how-can-i-add-this-javascript-code-1/)
 * I have a book list on my site, and I want to add these kind of javascript codes
   to it:
 * <script type=”text/javascript”>var bol_pml={“id”:”bol_1431982304239″,”secure”:
   false,”baseUrl”:”partnerprogramma.bol.com”,”urlPrefix”:”[http://aai.bol.com/openapi/services/aai/&#8221](http://aai.bol.com/openapi/services/aai/&#8221);,”
   productId”:”productid=1001004006423757&”,”site_id”:”34950″,”target”:true,”rating”:
   true,”price”:true,”link_name”:”Floris de Kok”,”link_subid”:””,”image_size”:true,”
   image_position”:”left”,”width”:”250″,”cols”:”1″,”background_color”:”#FFFFFF”,”
   text_color”:”#CB0100″,”link_color”:”#0000FF”,”border_color”:”#D2D2D2″,”letter_type”:”
   verdana”,”letter_size”:”11″};</script><script type=”text/javascript” src=”[http://partnerprogramma.bol.com/partner/static/js/aai/clientProductlink.js&#8221](http://partnerprogramma.bol.com/partner/static/js/aai/clientProductlink.js&#8221);
   id=”bol_1431982304239″></script>
 * I only want to add these types of code for one specific page. How do I do this?
   I did some research and found that I can enable javascript in the header or something
   but I read that it would slow down the entire website. Any idea’s?
    ps. bol.com
   offers a plugin to make this easy, but it is blocked by AdBlock, and since a 
   lot of users use AdBlock I rather don’t use it.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Moderator [t-p](https://wordpress.org/support/users/t-p/)
 * (@t-p)
 * [11 years ago](https://wordpress.org/support/topic/how-can-i-add-this-javascript-code-1/#post-6151173)
 * [https://codex.wordpress.org/Using_Javascript](https://codex.wordpress.org/Using_Javascript)
 *  Thread Starter [VerstandigMens](https://wordpress.org/support/users/verstandigmens/)
 * (@verstandigmens)
 * [11 years ago](https://wordpress.org/support/topic/how-can-i-add-this-javascript-code-1/#post-6151183)
 * I’ve seen that page before, but I only need to have some javascript scripts in
   1 specific page. When I have 50 scripts, I need to add all these in the header?
   Woudn’t this make the whole site slower?
    And does it matter that this link (
   copied from the script) “[http://partnerprogramma.bol.com/partner/static/js/aai/clientProductlink.js&#8221](http://partnerprogramma.bol.com/partner/static/js/aai/clientProductlink.js&#8221);
   is a external link?
 * Sorry for all the questions, but I really can’t seem to figure it out on my own..

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘How can I add this javascript code?’ is closed to new replies.

## Tags

 * [code](https://wordpress.org/support/topic-tag/code/)
 * [how-to](https://wordpress.org/support/topic-tag/how-to/)
 * [javascript](https://wordpress.org/support/topic-tag/javascript/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [VerstandigMens](https://wordpress.org/support/users/verstandigmens/)
 * Last activity: [11 years ago](https://wordpress.org/support/topic/how-can-i-add-this-javascript-code-1/#post-6151183)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
