Join the Soledad Facebook Users Group here
for Share, assistance, discussion, and Updates related to Soledad WordPress Theme.

If you can't create a new ticket - you can send us an email via our contact form and we will get back to you.

Okay
  Public Ticket #3124181
Dark Mode as Default
Closed

Comments

  • randamedya started the conversation

    Hi,

    I want it to show with dark mode by default. In other words, visitors entering the site encounter dark mode instead of light mode. Then, they can switch to light mode if they wishes. How can I do that?

    The auto dark mode setting doesn't work for me. I always want the dark mode to take precedence.

    Regards.

  •  2,660
    PenciDesign replied

    Hi,

    We'll add the dark mode default in the future theme update.

    Please keep waiting.

    Regards,
    PenciDesign.


  • randamedya replied

    Is there an estimated time? Could it come in the next update? When will you publish it? I have time to deliver the site to the customer. That's why I was wondering.

  •  2,660
    PenciDesign replied

    Hi,

    The progress may take 5-7 days. I'll update this ticket when it is available.

    Regards,
    PenciDesign.


  • randamedya replied

    Hi again,

    New version is live.
    But where do I do it? I want to use dark mode as default.If it is not possible in this update can you give me a javascript code?

    Regards.

  •   randamedya replied privately
  •  2,660
    PenciDesign replied

    Hi,

    Unfortunately, the newest update doesn't included the default dark mode feature, I'll check and update it to your site as soon as I can.

    Regards,
    PenciDesign.


  • randamedya replied

    New version has published. I was eagerly waiting for this feature to be added, but it did not come. Will there be a solution? Can you share a js code for quick solution?

  •  2,660
    PenciDesign replied

    Hi,

    Please send me your WordPress admin account in a PRIVATE reply.
    I'll log in and try to add this feature to your site now.

    Regards,
    PenciDesign.



  •   randamedya replied privately
  •  2,660
    PenciDesign replied

    Hi,

    Please add the following code to the Soledad child theme "functions.php" file or via the Code Snippet plugin here:

    add_action('wp',function(){
        $dark_mode_user = isset($_COOKIES['penci_mode']) && $_COOKIES['penci_mode'] ? $_COOKIES['penci_mode'] : '';
        if ( ! $dark_mode_user ) {
            setcookie('penci_mode','dark',WEEK_IN_SECONDS,'/');
        }
    });

    Regards,
    PenciDesign.



  • randamedya replied

    I placed the code but it didn't work. Would you check? Regards.

  •  2,660
    PenciDesign replied

    Hi,

    After adding this code, please go to Appearance > Install Plugins, install & activate the Penci Shortcode & Performance then check again.

    Regards,
    PenciDesign.


  • randamedya replied

    already active

  •  2,660
    PenciDesign replied

    Hi,

    I've edited your site.

    Please check.

    Regards,
    PenciDesign.


  • randamedya replied

    thank you very much. Pleased to meet you. How did you do? Let me know if I change it later

  •  2,660
    PenciDesign replied

    Hi,

    We'll add this as an option in the future theme update.

    Regards,
    PenciDesign.


  • randamedya replied

    Has this feature been added with new updates? I want it to show with dark mode by default.

  •  2,660
    PenciDesign replied

    Hi,

    I'll update this ticket when the new update with this features is available.

    Regards,
    PenciDesign.