Title: Javascript into WordPress
Last modified: August 30, 2016

---

# Javascript into WordPress

 *  [plet9090](https://wordpress.org/support/users/plet9090/)
 * (@plet9090)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/javascript-into-wordpress/)
 * Okay I have a google map javascript code I want to insert into my homepage (I
   also have seperate maps for each of my other pages I will need to insert).
 * I am struggling with this and nothing is working for me. I have my java file 
   in my host server as map_script.js
    First, with this should it just be my java
   code? or should it have the <script>Insert Java code here</script>? At the end
   of the code is the code with my API key, how do I add that to my java code? or
   does that just get added to my homepage html?
 * Second, where do I go from here? I have read the wordpress page with enqueue 
   and tried this, but it just doesnt seem to work for me. Does anyone have a better
   resource as to how to do this enqueue process or can explain it to me better?

Viewing 16 replies (of 16 total)

[←](https://wordpress.org/support/topic/javascript-into-wordpress/?output_format=md)
[1](https://wordpress.org/support/topic/javascript-into-wordpress/?output_format=md)
2

 *  Thread Starter [plet9090](https://wordpress.org/support/users/plet9090/)
 * (@plet9090)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/javascript-into-wordpress/page/2/#post-6752455)
 * I have edited some things, but now
 * Any page I don’t have my [cutsom-map-shortcode], the page loads with Error Code:
   InvalidKeyOrUnauthorizedURLMapError. I have gone through the google api and registered
   and verified my site. That can’t be it.
 * I looked at my page source and saw there was a line break in my api key code,
   however if I try to retype or delete the break, it wont work. That could be what
   is stopping it, but it wont let me edit it.

Viewing 16 replies (of 16 total)

[←](https://wordpress.org/support/topic/javascript-into-wordpress/?output_format=md)
[1](https://wordpress.org/support/topic/javascript-into-wordpress/?output_format=md)
2

The topic ‘Javascript into WordPress’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 16 replies
 * 2 participants
 * Last reply from: [plet9090](https://wordpress.org/support/users/plet9090/)
 * Last activity: [10 years, 7 months ago](https://wordpress.org/support/topic/javascript-into-wordpress/page/2/#post-6752455)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
