galleria extra function

resolved (7 posts) (3 voices)

  1. I've upgraded to twelve theme for galleria, and wish to make use of the toggle switches for 'fullscreen', 'pop-out window', 'play/pause', and 'thumbnails'. How to add extra functions to galleria, such as these without creating syntax issues?

    I want to add the following code to shortcode.php, on line 503, but keep getting a syntax error.

    e.g.

    extend: function() {
                                         var gallery = this;
                                         $('#fs').click(function(){
                                          gallery.toggleFullscreen();
                                       });
    }

    Thank you

    Posted 11 months ago #
  2. Ruderic
    Support

    Hello,

    Have you updated the Galleria script to it's latest version? I am afraid that you are trying to use a feature that's not supported by the Galleria version packaged in the theme.

    Posted 11 months ago #
  3. Ruderic,
    Updating the galleria seemed to do the trick. Apologies for that...

    Nonetheless, images are now blurred as they are showing the thumbnails, 60px x40px, generated by the timthumb script. I copied and pasted the original shortcode.php after making some changes, however this didn't change anything.

    Any ideas why it's sourcing images through the timthumb script?

    Posted 11 months ago #
  4. Elliott
    Support

    Hello IntMilkBrilliant,

    Are you using our [galleria] shortcode? If so then the thumbnails should be resized also. You can find this line in /wp-content/themes/awake/lib/functions/shortcode.php on line 486,

    $out .= '<a href="' .$gallery_img. '"><img alt="" class="noscript" src="' .webtreats_image_resize($img_height=40, $img_width=60, $img). '" /></a>';

    Are you wanting to take resizing off for the thumbnails?

    Posted 11 months ago #
  5. Elliot,

    I got the last one working fine, though since the update I can't find the location of where to adjust the image resize. The twenty theme functions by simply switching the registar scripts in scripts.php, however I can't find where to edit some of the other components for galleria.

    Posted 10 months ago #
  6. Elliott
    Support

    Hello IntMilkBrilliant,

    Open up /wp-content/themes/awake/lib/shortcodes/19-galleria.php and you can find the script settings on 173 - 187.

    Also, in case you need to change the image dimensions you can try this, http://mysitemyway.com/support/topic/galleria.

    Let us know if that helps IntMilkBrilliant.

    Posted 10 months ago #
  7. Thanks Elliot,

    I played around with the values in the shortcode earlier, but to no avail. It seems disabling the timthumb script has fixed this issue, though I can't quite figure out why.

    Posted 10 months 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