Code snippets
Articles
Responsive Video Embeds
Embedding video’s (YouTube, Vimeo a.o.) in your average CMS will give you a fixed size video in an iframe. Sometimes breaking … Read more →
CSS Shapes & Graphics
Whenever possible avoid bitmaps(jpg, png, gif etc.) and use html and css for simple (or even pretty complicated) shapes and … Read more →
Open all external links in a new window
Sometimes you can’t control generated HTML containing external links, you’re desperately trying to keep your ancient XHTML document valid, or … Read more →
Cleanup the head section HTML of a WordPress site
WordPress puts a lot of code in your head, some is useful, some might not be. Use this snippet to … Read more →
Adding MIME types to WordPress
Because of security reasons, WordPress has a whitelist of file types (so called MIME types) it allows you to upload … Read more →
Replace “Howdy” text in WordPress backend
WordPress welcomes a user in the English version of the backend with Howdy, [user] in the top right corner. Replace … Read more →