Documentation v8.0.38

Preview Downloads Purchase

Quick Setup

Right to Left (RTL) version of Metronic can be easily setup with special Gulp and Webpack task that depends on Gulp RTLCSS  and RTLCSS  tools.

  1. Run gulp task with --rtlflag in theme/tools/folder to generate the RTL versions of CSS files.
    gulp --rtl --demo1
    
    For Webpack user, use below command.
    npm run build --rtl --demo1
    
  2. Switch CSS files to their RTL versions by adding *.rtl.csssuffix to files that have RTL versions generated in assets folder:
    <!--begin::Page Vendor Stylesheets(used by this page)-->
    <link href="assets/plugins/custom/prismjs/prismjs.bundle.rtl.css" rel="stylesheet" type="text/css" />
    <!--end::Page Vendor Stylesheets-->
    
    <!--begin::Global Stylesheets Bundle(used by all pages)-->
    <link href="assets/plugins/global/plugins.bundle.rtl.css" rel="stylesheet" type="text/css" />
    <link href="assets/css/style.bundle.rtl.css" rel="stylesheet" type="text/css" />
    <!--end::Global Stylesheets Bundle-->
    
  3. Add the language direction attribute to the root HTML tag:
    <html direction="rtl" dir="rtl" style="direction: rtl">
    
  4. Plugins that come with their own RTL support can be skipped from the general RTL conversion by adding them into the skip list in the gulp config file as shown below:
    "compile": {
        "rtl": {
            "enabled": false,
            "skip": [
                "select2",
                "line-awesome",
                "fontawesome5",
                "nouislider",
                "tinymce",
                "sweetalert2"
            ]
        }
    }
    
    For more info about the gulp config file please check - Gulp Build Options.
  5. Flip the KTMenu dropdown submenu alignment attributes as shown below:
    data-kt-menu-placement="bottom-start" => data-kt-menu-placement="bottom-end"
    data-kt-menu-placement="right-start" => data-kt-menu-placement="left-start"
    
Metronic provides basic RTL support using the mentioned automation tools and further adjustments of the theme and related 3rd-party plugins for the full RTL support are responsibiliy of buyers.

Explore

Metronic Licenses

License FAQs
Regular License
For single end product used by you or one client
$ 39
Extended License
For single SaaS app with paying users
$ 969
Custom License
Reach us for custom license offers.
Buy Now
Learn & Get Inspired

Support at devs.keenthemes.com

Join our developers community to find answer to your question and help others. FAQs
Get Support
Documentation & Videos
From guides and video tutorials, to live demos and code examples to get started.
Plugins & Components
Check out our 300+ in-house components and customized 3rd-party plugins.
Layout Builder
Build your layout, preview it and export the HTML for server side integration.
Metronic Downloads
Download your prefered framework and demo with one click.
What's New
Latest features and improvements added with our users feedback in mind.
Buy now