We’re excited to have you join us! By registering, you’ll gain access to exclusive content, including leaked files and nulled software. Engage with our community, share your insights, and stay updated on the latest releases.

Get ready to explore and enjoy all the benefits of being a member, and feel free to connect with others through discussions and private messages.

Warning: Please do not create multiple accounts. We have a system in place that detects multiple account registrations, and any violations may result in a permanent ban.

Sign Up Now and Start Exploring!
  • License distribution for the
    Ibo 3.9 app+ panel with 17 themes to choose
    is now available for free, we are decrypting it now
    Only for VIP memberships

XenForo Dark mode / Light Mode switcher button

El Bana

Active member
Registered
Joined
Jul 25, 2024
Messages
142
This Template modification will add a button to NavGroup (before Search Button) to let users switching between the Light style and the Dark style.

1. Create a new Template Modification:

  • Template: PAGE_CONTAINER
  • Key: add_a_style_switcher_button_to_navgroup (or anything you want)
  • Find field:


Code:
Please, Log in or Register to view codes content!
  • Replace field:


CSS:
Please, Log in or Register to view codes content!
REMEMBER: Replace YOUR_LIGHT_STYLE_ID and YOUR_DARK_STYLE_ID to Light style ID and Dark Style ID (for example 2 and 3):
1722525696862.png

2. Now, We will style our Switcher button with an FA icon, Add this css into your extras.less

Code:
Please, Log in or Register to view codes content!
3. Set one of two above styles is Default style.
Now we can click the button to switch between our Light and Dark style:

My light style:

1722525715792.png

My Dark style:

1722525725137.png
 
Back
Top