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
  • Content for Logged-In Users Only:
  • Content for Non-Logged-In Users:

Was this helpful?

  1. More

Show/hide for non-logged in users

You can hide any element on the website for non-logged-in users.

Content for Logged-In Users Only:

This content is restricted and accessible only to users who are logged in. To apply this restriction, use the CSS class: .hidefornotloggedin.

<img src="URL" class="hidefornotloggedin" alt=""/>

Content for Non-Logged-In Users:

This content is visible only to users who are not logged in. To apply this restriction, use the CSS class: .hideforloggedin.

<img src="URL" class="hideforloggedin" alt=""/>

// For Block #1.
// Hide the Log-in button after login.
<div class="rui-hero-desc">From its medieval origins to the digital era, learn everything there is to know about the ubiquitous lorem ipsum passage.</div>
<div class="rui-hero-btns d-inline-flex flex-wrap hideforloggedin">
    <a href="https://rosea.io" class="btn btn-lg btn-primary">Sign up zalezy czy jestes zalogowany czy nie</a>
</div>
PreviousCustom FontsNextShow/hide on the Dark Mode

Last updated 4 months ago

Was this helpful?

🕶️