BAZ Moodle Theme
Get BAZ ThemeSupport
  • BAZ Premium Moodle Theme
  • Requirements
  • Changelog
  • Getting started
    • Theme Installation/Update
    • Demo content
    • RTL Layout
    • Custom Enrollment Page
    • Custom E-Mail Template
  • 🤩Global Styles
    • Typography
    • UI Elements
    • Headings/Text Modifications
  • Theme Settings
    • General
    • SEO
    • Customization
      • Google Fonts
      • Colors
    • Login page
    • Front Page Blocks
      • Block #1
      • Block #2
      • Block #3
      • Block #4
      • Block #5
      • Block #6
      • Block #7
      • Block #8
      • Block #9
      • Block #10
      • Block #11
      • Block #12
      • Block #13
      • todo Block #14
      • Block #15
      • Block #16
      • Block #17
      • todo Block #18
      • Block #19
      • How to add more item to blocks?
    • Top Bar
      • User Menu - Custom Icons
    • Dashboard
    • Course Page
    • Footer
    • Custom Fonts
  • More
    • 🕶️Show/hide for non-logged in users
    • 🌑Show/hide on the Dark Mode
    • Translations
    • Server recommendations
    • Graphics, Icons etc.
Powered by GitBook
On this page

Was this helpful?

  1. Getting started

RTL Layout

BAZ works with RTL languages.

PreviousDemo contentNextCustom Enrollment Page

Last updated 4 months ago

Was this helpful?

Hide Element Based on Text Direction

To hide an element based on the text direction (RTL or LTR), you can use CSS or JavaScript:

Using CSS:

[dir="rtl"] .element-to-hide {
    display: none;
}

[dir="ltr"] .element-to-hide {
    display: none;
}

Hide element in content using CSS classes (HTML)

To hide an element in your HTML content using CSS, you can apply specific CSS classes. Here’s a straightforward approach:

<p class="dir-ltr-hide">This paragraph is hidden on LTR, standard layout.</p>
<p class="dir-rtl-hide">This paragraph is hidden on RTL, right to left layout.</p>