Sticker Sticker
Sticker Sticker
  • 00 :

    Days
  • 00 :

    Hours
  • 00 :

    Minutes
  • 00

    Seconds
Sticker Sticker

How to Show Dark Mode Switch Button Using Shortcode

Table of Contents

You may want to show your dark mode switch button for your visitors on any page or post of the website. But it’s not always easy or possible to do that. You can easily display the dark mode switch button using the shortcode [wp_dark_mode_switch] in WP Dark Mode. Watch the video to know more.

Video Tutorial #

Go to your WordPress dashboard and navigate WP Dark Mode > Get Started.

How to Show Dark Mode Switch Button Using Shortcode

Copy the shortcode for default dark mode, or you can choose one with another switch style.

How to Show Dark Mode Switch Button Using Shortcode

Create a new page from the WordPress dashboard with Gutenberg Editor. Click on the “+” icon on the new page to find the shortcode block. Click on that block and paste the shortcode. Choose your preferred switch style and publish the page.

How to Show Dark Mode Switch Button Using Shortcode

For Elementor Page Builder:

Navigate to WordPress Dashboard > Pages > Add New > Edit with Elementor. Find the “Shortcode” element from the left panel and paste the code.

How to Show Dark Mode Switch Button Using Shortcode

Choose your preferred button style and click on Publish.

How to Show Dark Mode Switch Button Using Shortcode
Easy Video Reviews

{{startingCount}}
{{time(finishingCount)}}
{{trans(`You have no camera installed on your device or the device is currently being used by other application`)}}
{{trans(`Please try visiting this page with a valid SSL certificate`)}}
{{trans(`You can record up to %s minutes, don't worry you will review your video before sending`, time(preference.max_video_length))}}
{{trans('Seconds')}}
{{trans(`You can record up to %s minutes, don't worry you will review your video before sending`, time(preference.limits))}}
{{trans('Uploading video...')}}
{{send.message}}

{{trans('Upload video')}}

{{trans('Drag your files here or click in this area')}}
{{uploader.file}} {{uploader.size}} x