XenForo
Administrative
- Thread starter
- Admin
- #1
XenForo submitted a new resource:
Dark mode / Light Mode switcher button - Template modification to add Dark mode / Light Mode switcher button
Read more about this 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:<xf:if is="$xf.visitor.canChangeStyle()"> <xf:set var="$light_style"...
Read more about this resource...