Hi,
I wonder if it's possible to update the galleria plugin. New release have some good features and options...
Thanks
(6 posts)
(3 voices)
Hi,
I wonder if it's possible to update the galleria plugin. New release have some good features and options...
Thanks
Hello,
I would not recommend you to update Galleria, because that plugin was deeply modified. Also, the shortcode included in the theme uses some custom styling, and I am afraid that it will be broken if you update it.
Hello,
Yes i tried, not recommended as is : ) I'll try to modify shortcodes.php to match the new names of parameters without _. Any chance you work on a update ? The new release work lot better with the new clicknext option on idevices.
Thanks
Almost done. I've replaced galleria.js & galleria.classic.js. Add lines in galleria.classic.js as they were in old one :
var imgWidth = jQuery(e.imageTarget).parent().width() -18;
var imgHeight = jQuery(e.imageTarget).parent().height() -42;
jQuery(e.imageTarget).attr( 'width', imgWidth );
jQuery(e.imageTarget).attr( 'height', imgHeight );
jQuery(e.imageTarget).addClass('framed galleria-image-inline');
jQuery(e.imageTarget).parent().css( 'height', imgHeight +18);
Replace $ by jQuery and keep original css.
Put the new options in shortcodes.php
Almost done because main images are thumbnails enlarged. So very pixelated : )
Don't know why because there's no change in path structure with the new version.
Keep udpate of my process. ( any help appreciated of course : ) )
It works !
Galleria doesn't like paths of large images without extension in a href. it uses thumbnails ones instead.
So in galleria.js change in line 2177 data.link = href; by data.image = href; to override checking.
Enjoy new options : )
Hi lomoseb,
glad you got it to work and thanks for sharing your solution!
You must log in to post.