145 posts
  • Austria
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 1-2 years
LovelessDesign says

Yes, I have wp_head() and wp_footer().

I tried

jQuery.noConflict();
$(window).load(function () {
    alert("s");
}

and

jQuery.noConflict();
jQuery(window).load(function () {
    alert("s");
}

I also tried deleting every unnecessary code in functions.php or in the head tag

145 posts
  • Austria
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 1-2 years
LovelessDesign says

It worked with

jQuery(document).ready(function($) {

hm I still don’t know when to use a $, when to use jquery and when to use a $ in function($).

Another Question: Can’t I use jQuery(window).load(function($) { ? I’ve got problems with Google Chrome when reloading with F5 if I use document-ready instead of window-load

741 posts
  • Has been a member for 5-6 years
  • Sold between 50 000 and 100 000 dollars
  • Exclusive Author
  • Most Wanted Bounty Winner
  • Bought between 50 and 99 items
  • Poland
  • Referred between 10 and 49 users
Orbital_Themes says

Have you checked the footer of your page with code inspector or firebug to see if the script is outputted correctly? Because right now you don’t really know if it’s something wrong with outputting scripts or with script syntax itself.

EDIT : Also, what browser are you using to test this?

145 posts
  • Austria
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 1-2 years
LovelessDesign says
Everything works now. I use
jQuery(window).load(function() {    

thanks a lot to everyone

3426 posts Ruben Bristian
  • Most Wanted Bounty Winner
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Has been a member for 6-7 years
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Won a Competition
  • Bought between 100 and 499 items
  • Exclusive Author
  • Referred between 500 and 999 users
+5 more
KrownThemes says

Everything works now. I use
jQuery(window).load(function() {    
thanks a lot to everyone

Adding:

$ = jQuery.noConflict();

at the top of the scripts file will solve all your problems(if the problem is js like yours). Then you’ll be able to use the $ variable without any problems..

145 posts
  • Austria
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 1-2 years
LovelessDesign says


Everything works now. I use
jQuery(window).load(function() {    
thanks a lot to everyone

Adding:

$ = jQuery.noConflict(); at the top of the scripts file will solve all your problems(if the problem is js like yours). Then you’ll be able to use the $ variable without any problems..

thank you. you were absolutely right

by
by
by
by
by
by