Hey, thanks for the response. Yeah, I originally thought it was a problem with selector specificity, but later realized the plugin was outputting malformed HTML and that was causing my problems. So my browser was trying to nest one number inside the next, DOM-wise.
I ended up forking the plugin and fixing it myself to solve my client’s issue. I think I added a few extra span tags so I could hide the commas, etc, but it’s been a while so I’ve forgotten. If you’d like to take a look at my changes, let me know and I’ll put my fork online for you.
I’d love to look at your changes if you’re willing to share.
Not sure if there’s a better way to send these to you… Here’s a diff of my changes. I think the addslashes() was mangling the HTML.
Here’s an example (scss) of how I ended up styling it after the changes. N
Would you be able to post the entire file as gist: https://gist.github.com/ ? That way I can easily branch it to the code (https://github.com/fergbrain/countdown-timer)
I didn’t notice you had it on github. I’ll send a pull request.
Even better! Thank you very much!
No problem. Pull request is submitted. I think it would knock out quite a few of your feature requests pertaining to styling flexibility (remove commas or spacer words, etc). It’s been awhile so I can’t quite remember, but I think it fixes your closing tag issue. I had the same debugging process and ended up realizing it was a problem with the HTML on the PHP side before it was ever handed off to your JS for display.