• Mahrokh

    (@maahrokh)


    Hi,
    I am developing a block using block.json
    But I don’t know how can I load RTL CSS on frontend on RTL mode using block.json
    I couldn’t find any documentation about this on WP site
    I could load RTL CSS on backend using this code:

    // Check if RTL mode is enabled
    if (wp.i18n.isRTL()) {
    // Import RTL stylesheet if RTL mode is enabled
    import('./style-rtl.scss');
    }

    Just need to load RTL CSS on frontend
    Appreciate for any help

    • This topic was modified 12 months ago by Mahrokh.
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Loading RTL CSS on frontend block development’ is closed to new replies.