-
AuthorPosts
-
January 15, 2017 at 3:05 pm #733750
Hi, when i’m sorting my masonry element it always aligns to the left – https://www.screencast.com/t/PQYayEoQ1zB – and I want to make it align to the right as default as i’m using an RTL language.
How can I do that?
Thanks.
January 15, 2017 at 10:12 pm #733820Hey DROR,
I checked your site but the design appears to have changed?
Would you mind providing a precise link to the page, showing the elements in question? We need to be able to inspect them in order to help :)Best regards,
VinayJanuary 16, 2017 at 9:13 am #733953Hi Vinay, the URL is fine, you just need to pick the third option and you will see what I mean – https://www.screencast.com/t/b76NmwqrXefX
Thanks.
January 16, 2017 at 11:45 am #733979Hi,
1. Please try adding this at the very end of your themes / child themes functions.php file:
https://kriesi.at/support/topic/rtl-sortedreverse-functions-problem/#post-3841722. Add this to Quick CSS:
.av-masonry { padding: 0 50px; }
Best regards,
VinayJanuary 16, 2017 at 12:51 pm #734009Hi Vinay, I added both as mentioned but it seems nothing happens. I think the first code you gave me applies to columns and not to the masonry element.
January 18, 2017 at 6:46 am #735139Hi,
The masonry element is limited to left-to-right layout at the moment. You can replace it with the portfolio grid element if you really need the rtl layout and then follow this link.
// https://kriesi.at/support/topic/rtl-portfolio-grid-2/#post-714685
This option was disabled because it doesn’t work well in the masonry element. You can test it by editing the js > shortcodes.js file, look for this code around line 1436:
methods.applyMasonry(container, false, function()
.. replace it with:
methods.applyMasonry(container, 'av-masonry-entry', function()
After that, go to line 1245:
var filters = selector ? {filter: '.'+selector} : {};
.. replace it with:
var filters = selector ? {itemSelector : '.'+selector, filter: '.'+selector, layoutMode : 'fitRows', isOriginLeft : false} : {};
You’ll see why it is disabled.
Best regards,
IsmaelJanuary 18, 2017 at 9:23 am #735200I’ll take your word for it. Do you know if full RTL support will be added in the next theme update?
January 22, 2017 at 10:09 am #736926Hey!
I’m not really sure about that but you can ask or vote for the feature here.
// https://kriesi.at/support/enfold-feature-requests/
Regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.