• Resolved el3ctrician

    (@el3ctrician)


    Hello,
    in the RTL layout of the page slider is not shown correctly .. any ideas ?

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter el3ctrician

    (@el3ctrician)

    Hello,
    if anyone is intreseted to add RTL support … follow this steps please:
    1.go to the wp-content/plugins/responsive-posts-carousel/assets/custom.js
    2. add this lines at the begining

    var elem = document.getElementsByTagName('body');
    if (window.getComputedStyle) { // all browsers
            cs = window.getComputedStyle(elem[0], null).getPropertyValue('direction');
    } 
    else {
            cs = elem.currentStyle.direction; // IE5-8
        }
    var rtlStatus = false;
    if (cs == "rtl") 
    {
    rtlStatus = true;
    }
    

    3. in the same file after this line
    rows: $(this).data('rows'),
    add
    rtl:rtlStatus,

    Plugin Author rameez_iqbal

    (@rameez_iqbal)

    Hi, Thanks for sharing.

    We will add an option in settings to set the carousel in RTL mode in next version soon.

    Regards

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘RTL support’ is closed to new replies.