• Resolved pombear

    (@pombear)


    Hello!

    First of all, I would like to extend my heartfelt thanks and appreciation for developing such a cool and user-friendly theme. It’s amazing that Saasify is available for free, and I truly admire the hard work and dedication put into this project.

    I have a question regarding the theme’s functionality. Saasify supports both light and dark modes, which is a great feature. However, I am interested in setting the theme to always use dark mode, regardless of user system preferences or other settings. Is there a way to configure Saasify to always force dark mode for all users?

    Thank you for your assistance and for providing such a fantastic theme to the WordPress community.

    Best regards!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Also interested in an answer. I have the opposite case: How can you force light mode on Saasify?

    Found the answer here: https://wordpress.org/support/topic/turn-off-dark-mode-site-wide/

    You need to add this line of code to the functions.php in the blockify files:

    add_filter( 'blockify_dark_mode', '__return_false' );

    Thread Starter pombear

    (@pombear)

    Thank you for the response and for finding the solution, works like a charm!

    To force dark mode in the Saasify theme, add the following line of code:

    add_filter( 'blockify_dark_mode', '__return_true' );

    How to Add This Code

    If your child theme doesn’t have a functions.php file (Saasify doesn’t), you can create one using a file manager plugin or via your hosting control panel’s File Manager. After creating the file, you can edit it using the Theme File Editor in WordPress (Appearance > Theme File Editor) and add the code above.

    Alternatively, you can use the Code Snippets plugin:

    1. Install and activate the Code Snippets plugin.
    2. Go to Snippets > Add New.
    3. Create a new snippet with the code above.
    4. Save and activate the snippet.

    This worked perfectly for me. Thanks again!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Forcing Dark Mode’ is closed to new replies.