Tagged: Masonry Image Text
Dear Support,
I am using a masonry element on the page.
The title is put on the bottom of the image.
Is it possible to put it below the image?
Regards
Stefan
Hey ti2media,
Try this css in your child theme stylesheet:
#top.home #av-masonry-1.av-masonry a.av-masonry-entry {
margin-bottom: 50px !important;
}
#top.home #av-masonry-1.av-masonry .av-inner-masonry {
overflow: visible;
}
#top.home #av-masonry-1.av-masonry .av-inner-masonry-content {
position: relative !important;
top: 100%;
width: auto;
}
Then clear your cache and check.
Based on Guenni007’s solution.
Best regards,
Mike
you can see (including a snippet for child-theme functions.php ) a different solution – where the margin-bottom value is ruled by a script.
Only for masonry galleries – not for Masonry Entries
This code fixes caption overlay issues in Enfold’s Masonry elements by:
– Flexible Masonry: Places captions below images instead of overlaying them
– Perfect Grid: Dynamically calculates margin-bottom based on caption height
see: https://webers-testseite.de/masonry-with-captions/
PS: for pefect grid and automatic grid – there are sometimes timing problems . Maybe i find some time to correct it in the script. For flexible Masonry this solution works very good.
