-
AuthorPosts
-
March 22, 2014 at 6:56 pm #241659
Is there any way to customize the lightbox colors so that they fit the Enfold template (for example dark) and to display images in full-screen
http://wpml.viramedia.de/portfolio-item/lorem-ipsum/
cause LightBox is always reduzing the image size instead of showing them in full size
Thanks
IgorMarch 25, 2014 at 9:15 am #242581Hi Viramedia!
You can try to use the dark lightbox skin. Open up enfold/js/avia.js and replace
elements.prettyPhoto({ social_tools:'',slideshow: 5000, deeplinking: false, overlay_gallery:false, default_width: ww, default_height: wh });
with
elements.prettyPhoto({ social_tools:'', theme: 'dark_rounded', slideshow: 5000, deeplinking: false, overlay_gallery:false, default_width: ww, default_height: wh });
or
elements.prettyPhoto({ social_tools:'', theme: 'dark_square', slideshow: 5000, deeplinking: false, overlay_gallery:false, default_width: ww, default_height: wh });
2) Yes, you can link to the fullsize image by adding this code to your child theme functions.php file:
add_filter('avf_avia_builder_gallery_image_link', 'avia_change_gallery_thumbnail_link', 10, 4); function avia_change_gallery_thumbnail_link($link, $attachment, $atts, $meta) { $link = wp_get_attachment_image_src($attachment->ID, "full"); return $link; }
Regards,
PeterApril 5, 2014 at 2:40 pm #247780Thanks Peter
I like the fullscreen button…. but is there a way that pictures can be shown in fullscreen mode on a display instead of being framed? Cause the lightbox isn’t really user friendly, especially not on smartphones…. you can’t scroll pics in a simple waythanks for helping
April 9, 2014 at 4:42 am #249045January 14, 2016 at 9:21 pm #5657692) Yes, you can link to the fullsize image by adding this code to your child theme functions.php file:
This is a basic feature that has long been missing from Enfold theme. Even WordPress standard gallery allows you to pick the size to display in the lightbox. Enfold’s gallery should have no problems allowing users to customize the size of images to be displayed in the light box without changing the maximum size in media settings.
January 15, 2016 at 12:10 pm #566061 -
AuthorPosts
- You must be logged in to reply to this topic.