Dark mode / Light Mode switcher button

Dark mode / Light Mode switcher button

Admin

Administrator
Staff member
Admin submitted a new resource:

Dark mode / Light Mode switcher button - Template modification to add 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:
Code:
<a href="{{ link('whats-new') }}"
  • Replace field:

Code:
Code:
<xf:if is="$xf.visitor.canChangeStyle()">

    <xf:set...

Read more about this resource...
 
Back
Top