I have gallery on my page and I would like to add a support for left/right arrow for going between slides. The template uses Galleria Folio Theme.
Link is here: http://url.kybernaut.cz/19
Code of navigation is following:
<div class="galleria-image-nav">
<div class="galleria-image-nav-right" style="right: -50px; transition: none;"></div>
<div class="galleria-image-nav-left" style="left: -50px; transition: none;"></div>
</div>
I've got inspirated here Press left and right arrow to change image? But it didn't seem to work at all, code:
jQuery(document).keypress(function (e){
if(e.keyCode == 37) // left arrow
{
// your action here, for example
jQuery('.galleria-image-nav-left').click();
}
else if(e.keyCode == 39) // right arrow
{
// your action here, for example
jQuery('.galleria-image-nav-right').click();
}
Could anybody help me, please? It's a wordpress template (so non-conflict mode) and script is loaded correctly, but not working. Thanks a lot for your help.