Galleria Update

resolved (6 posts) (3 voices)

  1. lomoseb
    Member

    Hi,

    I wonder if it's possible to update the galleria plugin. New release have some good features and options...

    Thanks

    Posted 1 year ago #
  2. Ruderic
    Support

    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.

    Posted 1 year ago #
  3. lomoseb
    Member

    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

    Posted 1 year ago #
  4. lomoseb
    Member

    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 : ) )

    Posted 1 year ago #
  5. lomoseb
    Member

    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 : )

    Posted 1 year ago #
  6. Hi lomoseb,
    glad you got it to work and thanks for sharing your solution!

    Posted 1 year ago #

Reply

You must log in to post.

Construct WordPress Theme
Construct wordpress theme
Myriad WordPress Theme
Myriad wordpress theme
Method WordPress Theme
Method wordpress theme
Fusion WordPress Theme
Fusion wordpress theme
Elegance WordPress Theme
Elegance wordpress theme
Echelon WordPress Theme
Echelon wordpress theme
Dejavu WordPress Theme
Dejavu wordpress theme
Modular WordPress Theme
Modular wordpress theme