145 posts
  • Has been part of the Envato Community for over 2 years
  • Located in Austria
  • Has collected 1+ items on Envato Market
  • Sells items exclusively on Envato Market
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
  • Has been part of the Envato Community for over 2 years
  • Located in Austria
  • Has collected 1+ items on Envato Market
  • Sells items exclusively on Envato Market
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
  • Had an item featured on Envato Market
  • Won a Most Wanted contest
  • Has been part of the Envato Community for over 5 years
  • Has sold $40,000+ on Envato Market
+4 more
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
  • Has been part of the Envato Community for over 2 years
  • Located in Austria
  • Has collected 1+ items on Envato Market
  • Sells items exclusively on Envato Market
LovelessDesign says
Everything works now. I use
jQuery(window).load(function() {    

thanks a lot to everyone

3711 posts Ruben Bristian
  • Sells items exclusively on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $750,000+ on Envato Market
  • Has been part of the Envato Community for over 6 years
+10 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
  • Has been part of the Envato Community for over 2 years
  • Located in Austria
  • Has collected 1+ items on Envato Market
  • Sells items exclusively on Envato Market
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

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by