• First of all, thanks for the plugin, its wonderful!
    Q: Is it possible to add a line of php to run NightMode in page template?
    Something line this: <?php wp_night_mode(activate); ?>

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • If you are asking to add the button to the template, it should work this way:

    <?php echo do_shortcode(“[wp-night-mode-button]”); ?>

    That’s how you insert a shortcode in PHP.

    Plugin Author markoarula

    (@markoarula)

    Hello,

    first of all, sorry for the late reply.

    @giselagiardino thanks for the answer ??

    @filipv that’s correct you need to use shortcode to show toggle in specific places or you can just add an element with ‘wp-night-mode’ class.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Activate NightMode in Template’ is closed to new replies.