WP Header Breaking New Script?
-
Adding a “virtual” keyboard to our site that teaches chords and scales (licensed from people I know). New WP based site is now in development, and close to launch ready.
If I put the code in a regular (static) page with the normal get_header call, regardless of how I call the support files the virtual keyboard needs the keyboard won’t work. It will display, just doesn’t do anything.If I do not call the WP header (I created a test template with no get_header call) the page looks kind of ugly, but the keyboard works. This leads me to believe there is a conflict between what the app needs to work and what is normally already in the header.
I’m hoping someone may be able to tell me where/what I should be looking for, or a possible solution / work-around.
The keyboard requires a js file called chords.js, a css file called chords.css (which I’ve posted on pastebin, link is below) and a jquery script (link below).
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>The chords.css content is here:
http://pastebin.com/85rQ10KLA snipet of the code in the actual page follows:
<div id=”app_container”>
<div id=”top_bar”>Piano Chords & Scales</div>
<div id=”keyboard”>
<div id=”red_line”></div>
<div class=”white”></div>
<div class=”white”></div>
<div class=”black”></div>
<div class=”white”></div>
<div class=”black”></div>
<div class=”white”></div>
<div class=”white”></div>
<div class=”black”></div>
<div class=”white”></div>
<div class=”black”></div>
<div class=”white”></div>
<div class=”black”></div>
<div id=”C1″ class=”white white_on”>
<div class=”aa” style=”display: block;”>C</div>
</div>I’d be happy to point you to the two versions I created (one with header, one without) but our development site can only be reached using a proxy right now. I could provide the access but I’d need your IP which I’m not expecting you (or anyone) to want to provide just to help me.
Thanks in advance for any help with this, much appreciated.
Best,
Frank B.
The topic ‘WP Header Breaking New Script?’ is closed to new replies.