Resource icon

xF2 Template Modification Dark mode / Light Mode switcher button

zaim

Collaborate
Collaborate
Registered
Joined
Aug 26, 2019
Messages
229
Points
253

Reputation:

Haim submitted a new resource:

Dark mode / Light Mode switcher button - Dark mode / Light Mode switcher button

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:
<a href="{{ link('whats-new') }}"
  • Replace field:
<xf:if is="$xf.visitor.canChangeStyle()"> <xf:set var="$light_style"...

Read more about this resource...
 

ella01

New member
Registered
Joined
Jul 30, 2023
Messages
1
Points
1

Reputation:

Thank you for this good design
 
Top