You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am working on a squarespace shop that is displaying equal sized images.
I have added Isotope to the shop webpage for sorting and it has resized all of the images. Is there an easy way to fix this?
This is the code I added to the page header:
`<script>
var elem;
var iso;
window.onload = function(){
elem = document.querySelector('.list-grid');
iso = new Isotope( elem, {
//options
percentPosition: true,
itemSelector: '.grid-item',
layoutMode: 'fitRows',
containerStyle: null,
resize: false,
fitRows: {
equalheight: true,
gutter: 30
},
getSortData: {
name: '.grid-title'
}
});
}
function myFunction(name) {
iso.arrange({ sortBy: name });
}
</script>`
Squarespace without isotope:
Squarespace with isotope:
The text was updated successfully, but these errors were encountered:
I am working on a squarespace shop that is displaying equal sized images.
I have added Isotope to the shop webpage for sorting and it has resized all of the images. Is there an easy way to fix this?
This is the code I added to the page header:
`<script>
var elem;
var iso;
window.onload = function(){
elem = document.querySelector('.list-grid');
iso = new Isotope( elem, {
//options
percentPosition: true,
itemSelector: '.grid-item',
layoutMode: 'fitRows',
containerStyle: null,
resize: false,
fitRows: {
equalheight: true,
gutter: 30
},
getSortData: {
name: '.grid-title'
}
});
}
function myFunction(name) {
iso.arrange({ sortBy: name });
}
</script>`
Squarespace without isotope:
Squarespace with isotope:
The text was updated successfully, but these errors were encountered: