Tagged: margin, Masonry Gallery, spacing
-
AuthorPosts
-
July 13, 2014 at 10:04 pm #290839
Hi!
How can I change the spacing between the tiles of masonry gallery? Is there any costum CSS to fix that?
10px would be perfect!Thanks and regards
LukeJuly 14, 2014 at 1:18 pm #291018Hey LukasE!
Please choose to display “Large gap” in “Gap between elements” – http://i.imgur.com/7QClC5p.png
Cheers!
YigitJuly 14, 2014 at 1:27 pm #291024Hey Yigit!
I’ve probably not well described. The three options I know.
Would it be possible to set the gap to 5px or 10px by custom CSS?Cheers!
LukasJuly 14, 2014 at 1:31 pm #291028Hey!
Please add following code to Quick CSS in Enfold theme options under General Styling tab and adjust as needed
.av-large-gap.av-flex-size .av-masonry-entry .av-inner-masonry { margin-right: 10px; }Best regards,
YigitJuly 14, 2014 at 2:01 pm #291041It worked – thank you!
I have one more question: Can the size of the lightbox view be changed?
The photos in my gallery have 1500px width. Nevertheless, they are presented only with 1030px width. Can the lightbox be adjusted, so that displays the full resolution?Cheers!
LukasJuly 15, 2014 at 5:43 pm #291716Hey!
Yes, please insert this code into the functions.php file (child theme functions.php or enfold/functions.php):
add_filter('avf_avia_builder_masonry_lightbox_img_size', 'avia_change_gallery_thumbnail_link', 10, 1); function avia_change_gallery_thumbnail_link($size) { return "full"; }Cheers!
PeterJuly 16, 2014 at 8:54 am #291975Hey Peter!
This code causes the following error:
Parse error: syntax error, unexpected ‘function’ (T_FUNCTION) in /www/htdocs/w01228d6/deinauftritt.at/wp-content/themes/enfold/functions.php on line 28
Greets!
LukasJuly 16, 2014 at 12:57 pm #292029Hey Lukas!
I added the code and it does not give any errors on my local installation. Please try to copy & paste the code to bottom of functions.php file
Best regards,
YigitJuly 16, 2014 at 1:19 pm #292044Hey Yigit!
My mistake, I have copied the code into the function.php.
Now it works!Thanks and best regards,
LukasJuly 16, 2014 at 1:25 pm #292045 -
AuthorPosts
- The topic ‘Edit the masonry gallery margin’ is closed to new replies.
