A
A
Artem Gvozdev2018-07-15 15:42:48
JavaScript
Artem Gvozdev, 2018-07-15 15:42:48

How to make a countdown timer in Wordpress?

Good afternoon everyone!
How can I make a countdown timer? For example, the time until the end of any promotion, or discounts on goods, etc.
Without a plugin.
And with the ability to set the start and end time in the admin
panel, as I understand it, you can use the jquery datepicker in the admin panel? or not, correct, or throw material for thought

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey Mamenko, 2018-07-15
@arty23_03

It's simple, you take https://github.com/hilios/jQuery.countdown and pass the date and time to it using ACF.
If the site works in many regions, then https://momentjs.com/ must be set additionally for time zones

P
Pavel Novikov, 2018-07-15
@paulfcdd

Why would you use WordPress then if you don't use plugins?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question