Implementing Javascript Map in a Page
-
Hi guys, i bought a javascript USA map to use on one of my WP websites, but can’t get it to work…
This is how the map should look like:
http://artbookaddicts.com/NCPics/usamap1.pngAnd here’s an overview of the included files:
http://artbookaddicts.com/NCPics/usamap2.pngI want to implement the map on a wordpress page, but something goes wrong, here’s how i tried to do it:
Upload the css file and the javascript file to my wordpress directory with FileZilla
Change the location of the above 2 files in the index.html code
Copy the edited index.html code into a new wordpress page (note that i paste this in the HTML view, not the visual view)When i go to the newly created page, the code is visible and the map is not showing (only the borders of where it should be are visible) … not exactly what i’m trying to achieve…
I assume the problem is that you can only put html in the Page HTML box, and as far as my coding knowledge goes, there’s some css in it too. Is there a way to put the index.html file in the theme directory and bring it up on a page with a HTML shortcode?
Any help would be very much appreciated. I can post the code if you want, just ask…
The topic ‘Implementing Javascript Map in a Page’ is closed to new replies.