AyeCode / geodirectory

GeoDirectory is the leading Directory Plugin for WordPress. Compatible with Gutenberg and the most popular page builders such as Elementor, Oxygen, Beaver Builder and Divi. GeoDirectory is the only solution for WordPress that can scale to millions of listings and high traffic.
https://wpgeodirectory.com/
Other
39 stars 21 forks source link

GD > Post images Masonry gallery not working with BS5 #2547

Closed Stiofan closed 3 months ago

Stiofan commented 4 months ago

I'm not sure if we have it in our BS5 package, check if there is an easy way to add this.

kprajapatii commented 4 months ago

In BootStrap v4 masonry was adjusted with CSS. In BootStrap v5 masonry is not included and it required separate masonry library to load. See https://getbootstrap.com/docs/5.3/components/card/#masonry

Should we load library or remove masonry for BS5?

@Stiofan

Stiofan commented 4 months ago

@kprajapatii looks like its just a single JS file, lets add it to AUI and then add a function to enqueue it in AUI, then call it from the GD post images block only when masonory is set?

Stiofan commented 4 months ago

This does not look right on my localhost

kprajapatii commented 4 months ago

I setup at ppldb.com/v2 site and it is working fine.

Examples: https://ppldb.com/v2/restaurants/united-states/new-york/new-york-1/maya-inn/?#masonry https://ppldb.com/v2/masonry-gallery/

FYI: Masonry gallery changes will be released in next v2.3.45