| | #1 |
| HyperActive Warrior War Room Member Join Date: 2009 Location: Orange County, California
Posts: 154
Thanks: 14
Thanked 43 Times in 8 Posts
|
I want to add this javascript code in the footer of my wordpress site and it's not working correctly. What am I doing wrong? <!-- eof container --> <!--/voey branding--> <div class="copyright"> <a class="calltoqtip" href="http://vnbeautysupply.com">Designed by voey Media<sup>®</sup></a> <div class="growitqtip"> <div class="growitright"> <a href="http://vnbeautysupply.com class="slogan">best nails!!</a> <p>Paragraph to add message</p> <div class="growitleft"> <a href="http://vnbeautysupply.com class="growitlogo"> <img src="catalog/view/theme/default/image/logo_small.png" style=""/> </a> <a class="url" href="http://vnbeautysupply.com">vnbeautysupply</a> <a class="phone">(877) 274-4911</a> <a class="address" href="http://vnbeautysupply">1234 st. 200<br/>CA</a> </div> <div style="clear:both;"></div> </div> <script type="text/javascript"> $(document).ready( function() { $('.copyright .calltoqtip').qtip( { content: $('.growitqtip'), position: { corner: { target: 'topMiddle', tooltip: 'bottomMiddle' } }, hide: { fixed: true, delay:800 }, style: { width:450, padding:10, border:{ width:10, radius:10, color:'#fff' } } }); }); </script> <!--/eof voey branding--> |
| |
| | #2 |
| Full Stack Developer Join Date: 2011 Location: Bangkok, Thailand
Posts: 1,142
Thanks: 56
Thanked 206 Times in 183 Posts
|
You can try this function, it will put the js in the right place... Code: <?php function add_this_script_footer(){ ?>
[YOUR JS CODE HERE]
<?php }
add_action('wp_footer', 'add_this_script_footer'); ?> |
| | |
| |
| | #3 |
| HyperActive Warrior War Room Member Join Date: 2009 Location: Orange County, California
Posts: 154
Thanks: 14
Thanked 43 Times in 8 Posts
|
thread closed.
|
| |
|
| Bookmarks |
| Tags |
| footer, install, javascript, wordpress |
| |