Tagged: rtl
-
AuthorPosts
-
July 25, 2016 at 11:08 am #664529
In the past I asked about incorrect section order in rtl mobile display:
https://kriesi.at/support/topic/incorrect-section-order-in-rtl-mobile-display/You gave this solution:
https://kriesi.at/support/topic/rtl-sortedreverse-functions-problem/But in updated version – it’s not working any more…
July 26, 2016 at 2:09 am #665074Hey yudkoren,
Please post a link to your site.
Best regards,
JosueJuly 26, 2016 at 9:45 am #665175Attached links
July 28, 2016 at 3:27 am #666024Hi,
I don’t see the custom script anywhere in the page. Did you remove it? Please post the login details here so that we can check the functions.php file.
Best regards,
IsmaelJuly 28, 2016 at 10:01 am #666096Custom script switched not only right and left but also first and last.
I removed it and now it’s only right and left switched.Login attached
August 1, 2016 at 3:52 am #667112Hi,
Where did you add the “rtl_columns_fix” script? We may break the site if we add duplicate functions.
Best regards,
IsmaelAugust 1, 2016 at 10:04 am #667168As I wrote, I removed the script because it switched not only right and left but also first and last.
But now it is back.
In functions.phpPlease help
August 3, 2016 at 2:38 pm #668054I have this site that is RTL and the mobile order is LTR
How can we fix it, i also tried and insert the code into the function and it disrupt the order and gave me the upside from bottom to top site.
https://kriesi.at/support/topic/rtl-sortedreverse-functions-problem/August 5, 2016 at 4:52 am #668811Hi,
Please update the code:
function rtl_columns_fix(){ ?> <script> (function($){ var resizeTimeout, sortedReverse = false; $(window).resize(function () { if (resizeTimeout) { window.clearTimeout(resizeTimeout); } resizeTimeout = window.setTimeout(function () { var windowWidth = window.innerWidth; if ((windowWidth < 767 && !sortedReverse) || (windowWidth >= 767 && sortedReverse)) { var rtlContainer = $('.entry-content-wrapper'), rtlColsOdd = rtlContainer.children('.flex_column:odd').not('.av_one_full'), rtlColsEven = rtlContainer.children('.flex_column:even').not('.av_one_full'), cols = []; cols = $.map(rtlColsOdd, function(v, i) { return [v, rtlColsEven[i]]; }); rtlContainer.each(function(){ $(this).append(cols); }); sortedReverse = !sortedReverse; } }, 100); }).trigger("resize"); })(jQuery); </script> <?php } if(is_rtl()) { add_action('wp_footer', 'rtl_columns_fix'); }
NOTE: This is only going to work on two column layouts.
Best regards,
IsmaelAugust 5, 2016 at 12:22 pm #668937Hi,
it didn’t solve the problem.
It still switching left-right and first-lastYud
August 6, 2016 at 4:48 am #669200Hi!
You placed the code in the style.css file instead of the functions.php file. Please check it now.
Best regards,
IsmaelAugust 6, 2016 at 9:24 am #669280Working great.
Thanks -
AuthorPosts
- The topic ‘Incorrect Section Order in RTL Mobile Display’ is closed to new replies.