A shortcode is a WordPress-specific code that lets you do various things with little effort. Shortcodes in WordPress are little bits of code, enclosed in square brackets , that allow you to do various things with little effort.
So as to the displaying dark mode toggle switch for the Dracula Dark Mode plugin. You can display the dark mode toggle button anywhere on your website using the [darcula_toggle] shortcode. You can change specific toggle button styles using this [darcula_toggle style=”1″] shortcode. Change the number from 1-14 as we have 14 unique button styles to choose from.
Navigate to any page, post, or specific location where you want to display the dark mode toggle button > paste the shortcode [darcula_toggle]. The dark mode toggle button will be visible there.