Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 8th May 2013, 02:52 PM   #1
HyperActive Warrior
War Room Member
 
vryannn's Avatar
 
Join Date: 2009
Location: Orange County, California
Posts: 154
Thanks: 14
Thanked 43 Times in 8 Posts
Default
how to install javascript in footer of wordpress
Share on: 
fb share twitter share gplus share more share

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>&reg;</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-->
vryannn is offline  
Unread 8th May 2013, 02:58 PM   #2
Full Stack Developer
 
Patrick's Avatar
 
Join Date: 2011
Location: Bangkok, Thailand
Posts: 1,142
Thanks: 56
Thanked 206 Times in 183 Posts
Default
Re: how to install javascript in footer of wordpress
Share on: 
fb share twitter share gplus share more share

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'); ?>
Also try using jQuery(document).ready( function($) instead of $(document).ready( function()

Patrick is offline  
Unread 8th May 2013, 03:14 PM   #3
HyperActive Warrior
War Room Member
 
vryannn's Avatar
 
Join Date: 2009
Location: Orange County, California
Posts: 154
Thanks: 14
Thanked 43 Times in 8 Posts
Default
Re: how to install javascript in footer of wordpress
Share on: 
fb share twitter share gplus share more share

thread closed.
vryannn is offline  
Closed Thread


Bookmarks

Tags
footer, install, javascript, wordpress


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 06:11 AM.