RTL the Masonry
-
hello, by default the Masonry is to the LEFT. each post has (for example):
position: absolute; left: 373px; top: 110px;
i wish for all the posts to be to the right, my site is RTL,
i looked for solutions and found this:
$(‘selctor’).masonry({ originLeft: false });i added this to the file “global.js” but this dosn’t work. also i tryed:
docReady( function() {
var container = document.querySelector('.masonry'); var button = document.querySelector('#toggle-button'); var msnry = new Masonry( container, { isOriginLeft: false });
but this also dosn’t work. can you please advice me on this ?
- The topic ‘RTL the Masonry’ is closed to new replies.