jQuery mouseover and mouseleave do not work when logging out?
Permalink
This is a bit of a strange issue. My jQuery works fine in all regards, except for this bit:
If you mouse over this button, then the background slowly changes color. It works fine when logged in, but I'm testing my site when logged out and it stopped working.
Any ideas?
/*Home Button Hover Effect*/ $('.home-button-link').mouseover(function(){ $(this).animate({'background-color': '#3F74A9'},300); }); $('.home-button-link').mouseleave(function(){ $(this).animate({'background-color': '#5493c7'},300); });
If you mouse over this button, then the background slowly changes color. It works fine when logged in, but I'm testing my site when logged out and it stopped working.
Any ideas?
If you are not logged in, it depends on the theme (or blocks on your page) if it is loaded.
You need to require it.
Take a look at the docs on how this can be done:
http://documentation.concrete5.org/developers/assets/overview...
http://documentation.concrete5.org/developers/designing-for-concret...
http://documentation.concrete5.org/developers/working-with-blocks/w...