Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working with ajax loaded items #21

Open
diviengine opened this issue Mar 26, 2020 · 2 comments
Open

Not working with ajax loaded items #21

diviengine opened this issue Mar 26, 2020 · 2 comments

Comments

@diviengine
Copy link

diviengine commented Mar 26, 2020

Hi.

Fistly thank you for making this!

Hopefully this is an issue on my end. I have items that are being loaded via ajax.

I have this
success : function( data ) { if ( data ) { jQuery('.filtered-posts').html( data.posts ); jQuery('.filtered-posts').colcade({ columns: '.grid-col', items: '.grid-item' }); } }

it is not putting the grid-items into the col.

Any ideas on how to solve this?

@zitrusblau
Copy link

you might consider using the append/prepend method of colcade after initializing. Is data.posts a jquery object/dom list?

@diviengine
Copy link
Author

Did not work either.

I managed to code my own masonry now - thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants