Back to Gallery / Slideshow Support

Keios
Keios

Hello, This may be something stupid, but I'm not really much into JS and I'm stuck. I bought and added the plugin to my website, but I cannot run it, can someone take a short look and tell me what's wrong? http://cjo.keios.net.pl/galeria

`Uncaught ReferenceError: $ is not defined`

in `

$(function() {
    $('.tl').glisse({speed: '550', changeSpeed: '550', effect: 'fade', fullscreen: '0' });});

` The same if I try it without layout. As far as I understand all js and css should be added automatically, so what's the reason of the issue?

Thank you.

Last updated

Keios
Keios

I got it resolved by moving all scripts to head section (I usually keep them at the end of the file to website, before end of body tag so the webpage loads faster). Now there is no error but gallery still doesn't load. Please tell me what is proper procedure to make this plugin working, what dependencies?

Last updated

daftspunky
daftspunky

Try using

{% put scripts %}
<script>
$(function() {
    $('.tl').glisse({speed: '550', changeSpeed: '550', effect: 'fade', fullscreen: '0' });});
</script>
{% endput %}

Last updated

Keios
Keios

OK thanks, all resolved.

Last updated

Lucas[Keios]
Lucas[Keios]

Documentation doesn't present information that both {% scripts %} and {% styles %} are needed in layout head, please add. Problem fixed.

Shahiem
Shahiem

Thank you @daftspunk

tee
tee

T>daftspunk said:

Try using

{% put scripts %}
<script>
$(function() {
   $('.tl').glisse({speed: '550', changeSpeed: '550', effect: 'fade', fullscreen: '0' });});
</script>
{% endput %}

These also help me. Thanks a lot.

1-7 of 7