• Resolved poeter

    (@poeter)


    Hello,

    I’m using the following PHP code to display the toggle in a custom theme file:

    <?php 
    if (function_exists('is_plugin_active') && is_plugin_active('dracula-dark-mode/plugin.php')) {
    echo do_shortcode('[darcula_toggle]');
    }?>

    But on the font end, only plain text appears instead of the expected toggle: https://prnt.sc/ZmkLWqoS-R8z

    Is there an alternative method or code I can use with the free version of your plugin?

    Thank you

    Daniel

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Sazzad Hossain

    (@sazzad11)

    Hi Poeter,

    Thank you for reaching out.

    We reviewed your code and noticed a spelling mistake in the shortcode section. You wrote ('[darcula_toggle]'), but the correct spelling should be ('[dracula_toggle]').

    Please see the screenshot for reference: https://prnt.sc/3cmz-HhXdEjh.

    Kindly replace ('[darcula_toggle]') with ('[dracula_toggle]') to resolve the issue.

    Let us know if you need any further assistance!

    Thread Starter poeter

    (@poeter)

    Oh dear! Shame on me!

    Thank you Sazzad

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.