Posts by GoodLayers

376 posts
  • Power Elite Author: Sold between 2 000 000 - 4 999 999 dollars
  • Power Elite Author
  • United States
  • Interviewed on the Envato Notes blog
  • Referred more than 2000 users
  • Exclusive Author
  • Has been a member for 4-5 years
+1 more
GoodLayers says

Sorry this is code

<script src="http://localhost/wordpress2/wp-content/themes/me/js/ddsmoothmenu.js?ver=3.0.1" type="text/javascript"></script> <script src="http://localhost/wordpress2/wp-content/themes/me/js/jquery.nivo.slider.js?ver=3.0.1" type="text/javascript"></script> <script src="http://localhost/wordpress2/wp-content/themes/me/js/jquery.prettyPhoto.js?ver=3.0.1" type="text/javascript"></script> <script src="http://localhost/wordpress2/wp-content/themes/me/js/content-slider.js?ver=3.0.1" type="text/javascript"></script> <script src="http://localhost/wordpress2/wp-content/themes/me/include/starter-js.js?ver=3.0.1" type="text/javascript"></script>
376 posts
  • Power Elite Author: Sold between 2 000 000 - 4 999 999 dollars
  • Power Elite Author
  • United States
  • Interviewed on the Envato Notes blog
  • Referred more than 2000 users
  • Exclusive Author
  • Has been a member for 4-5 years
+1 more
GoodLayers says

Sorry but this gonna be really last question.

When I use ‘wp_enqueue’

if you notice why it appears ’?ver=3.0.1’ after every files ??

376 posts
  • Power Elite Author: Sold between 2 000 000 - 4 999 999 dollars
  • Power Elite Author
  • United States
  • Interviewed on the Envato Notes blog
  • Referred more than 2000 users
  • Exclusive Author
  • Has been a member for 4-5 years
+1 more
GoodLayers says


Another problem just came T T

Some for my jquery stuffs don’t work.

This is an example

jQuery(”.button_big”).hover(function () { jQuery(this).animate({ opacity: 0.7 }, 200); },function(){ jQuery(this).animate({ opacity: 1 }, 200); });

do you know what is the problem ?

thanks.
Does it throw some error or it just doesn’t work?

Never mind. It works now. Becoz of my silly mistake – -

wp_deregister_script('jquery.prettyPhoto');
wp_register_script('jquery.prettyPhoto', get_bloginfo('template_url').'/js/jquery.prettyPhoto.j');
wp_enqueue_script('jquery.prettyPhoto');

forgot ’s’ after prettyPhoto.j

Anyway, thanks a lot for your help :smitten:

376 posts
  • Power Elite Author: Sold between 2 000 000 - 4 999 999 dollars
  • Power Elite Author
  • United States
  • Interviewed on the Envato Notes blog
  • Referred more than 2000 users
  • Exclusive Author
  • Has been a member for 4-5 years
+1 more
GoodLayers says

just doesn’t work. not any errors appeared.

376 posts
  • Power Elite Author: Sold between 2 000 000 - 4 999 999 dollars
  • Power Elite Author
  • United States
  • Interviewed on the Envato Notes blog
  • Referred more than 2000 users
  • Exclusive Author
  • Has been a member for 4-5 years
+1 more
GoodLayers says

Another problem just came T T

Some for my jquery stuffs don’t work.

This is an example

jQuery(”.button_big”).hover(function () { jQuery(this).animate({ opacity: 0.7 }, 200); },function(){ jQuery(this).animate({ opacity: 1 }, 200); });

do you know what is the problem ?

thanks.

376 posts
  • Power Elite Author: Sold between 2 000 000 - 4 999 999 dollars
  • Power Elite Author
  • United States
  • Interviewed on the Envato Notes blog
  • Referred more than 2000 users
  • Exclusive Author
  • Has been a member for 4-5 years
+1 more
GoodLayers says




Thanks for your help.

more question

Do I need to move all my .js files(in header.php) to that function?
Well you should be loading all js files using the register and enqueue so yeah remove it all from header.php.

Thanks a lot :D

but I got some problems

I use this code wp_register_script('jquery', get_bloginfo('template_url').'/js/jquery-1.4.2.min.js'); wp_enqueue_script('jquery');' but when I click view source. It just appeared <script src="http://localhost/wordpress/wp-includes/js/jquery/jquery.js?ver=1.4.2" type="text/javascript"></script> Why it didn’t point to wp-content/themes/... T T

You need to deregister “jquery” first since it already exists.

wp_deregister_script('jquery');

got it

Thanks a lot :D

376 posts
  • Power Elite Author: Sold between 2 000 000 - 4 999 999 dollars
  • Power Elite Author
  • United States
  • Interviewed on the Envato Notes blog
  • Referred more than 2000 users
  • Exclusive Author
  • Has been a member for 4-5 years
+1 more
GoodLayers says


Thanks for your help.

more question

Do I need to move all my .js files(in header.php) to that function?
Well you should be loading all js files using the register and enqueue so yeah remove it all from header.php.

Thanks a lot :D

but I got some problems

I use this code wp_register_script('jquery', get_bloginfo('template_url').'/js/jquery-1.4.2.min.js'); wp_enqueue_script('jquery');' but when I click view source. It just appeared <script src="http://localhost/wordpress/wp-includes/js/jquery/jquery.js?ver=1.4.2" type="text/javascript"></script>

Why it didn’t point to wp-content/themes/... T T

376 posts
  • Power Elite Author: Sold between 2 000 000 - 4 999 999 dollars
  • Power Elite Author
  • United States
  • Interviewed on the Envato Notes blog
  • Referred more than 2000 users
  • Exclusive Author
  • Has been a member for 4-5 years
+1 more
GoodLayers says

Thanks for your help.

more question

Do I need to move all my .js files(in header.php) to that function?

376 posts
  • Power Elite Author: Sold between 2 000 000 - 4 999 999 dollars
  • Power Elite Author
  • United States
  • Interviewed on the Envato Notes blog
  • Referred more than 2000 users
  • Exclusive Author
  • Has been a member for 4-5 years
+1 more
GoodLayers says

Any one has dribble invitation? I need it hahaha. :P

376 posts
  • Power Elite Author: Sold between 2 000 000 - 4 999 999 dollars
  • Power Elite Author
  • United States
  • Interviewed on the Envato Notes blog
  • Referred more than 2000 users
  • Exclusive Author
  • Has been a member for 4-5 years
+1 more
GoodLayers says

Help! I need to know how to use ‘wp_enqueue’. I’ve tried some but it didn’t work T T

Thanks

by
by
by
by
by
by