JPKCom Bootstrap 5 Dark Mode Switch

Documentation

Table of Contents

Packages

JPKComBsDarkMode
JPKComBsDarkModeGitUpdate

Namespaces

JPKComBsDarkModeGitUpdate

Constants

JPKCOM_BS_DARK_MODE_VERSION  : mixed = '2.0.3'

Functions

jpkcom_bs_dark_mode_switch()  : void
Render the Bootstrap 5 dark mode switch and its toggle script.

Constants

Functions

jpkcom_bs_dark_mode_switch()

Render the Bootstrap 5 dark mode switch and its toggle script.

jpkcom_bs_dark_mode_switch() : void

Registered for the [jpkcom-bs-dark-mode] shortcode. Outputs a Bootstrap form-switch and persists the selected theme in localStorage (bsTheme), defaulting to dark mode.

Tags
since
1.0.0

Search results