Danny van Kooten


Writing code and emails for a living.


  1. Add plain HTML social sharing links to your posts

    I was going through the social sharing plugins for WordPress and found that most were either too complicated, bloated, poorly coded or ugly for my liking. I was looking to add simple sharing links for Twitter, Facebook and Google+ to my posts but I didn't want to add an extra…

    on WordPress

  2. WordPress plugin structure, don't load unnecessary code

    When developing WordPress plugins it is important to decide whether code needs to be loaded or not as early in the request lifecycle as possible. Why bother loading unnecessary code and hooking into actions and filters that will never run for the request being made? Having said that, it is…

    on WordPress

  3. Delay scroll (and resize) handlers in JavaScript

    While working on my newest plugin (Scroll Triggered Boxes) I had to attach a handler to the scroll event of the browser window to determine whether a user scrolled down far enough. While the logic for this is pretty simple, I had to put some thought into handling this the…

    on JavaScript, jQuery

  4. Automatically add a MailChimp sign-up form to all posts

    When someone gets to the end of your post, they surely love what you have to say. It makes the end of your posts the perfect spot to ask your visitors to sign-up to your newsletter. It converts well and you're asking right when they're feeling great about your content.…

    on MailChimp, WordPress

  5. Add a MailChimp sign-up checkbox to Contact Form 7

    Contact Form 7 is one of the most popular free contact form plugins for WordPress andĀ MailChimp is an enormously powerful email marketing tool. There are quite a few guides on the internet telling you how to make the two work together. Unfortunately, most of them seem to overcomplicate things…

    on MailChimp, Contact Form 7, WordPress