Налаштування віджета Elementor, що відраховує лише 1 годину





#Elementor #Countdown #wordpress 

Налаштування віджета Elementor, що відраховує лише 1 годину

link on widget : https://wordpress.org/plugins/countdown-timer-for-elementor/ 

custom code:

var d = new Date();

var hour = d.getHours()

hour += 1;

var time = `${hour}:${d.getMinutes()}:${d.getSeconds()}`;

//console.log(time);



line on jQuery plugin attribute:

original:

<?php #echo preg_replace('/-/', '/', $settings['ctw_due_date']); ?>

my:

dateAndTime : "< ?php echo date("Y/m/d"); ?>"+time, 

Коментарі