Treehouse: Grow your CSS skills. Land your dream job.

WordPress Functionality Plugins

The following is a guest post by Jason Witt. I've known for quite a while that I should port a lot of the stuff from my `functions.php` in my WordPress theme into a functionality plugin. But you know, hours in the day and all that. I recently had Jason work on this project for me, and he did a bang up job. If you have no idea what I'm talking about, read on.

Adding new functionality to a WordPress …

Read Article →

Server Side Mustard Cut

In this article we'll look at how useful client-side "mustard cutting" is and look at a technique where saving that information to a cookie so it can be used server-side can be useful. Read Article →

Choose a Random Option based on a Range

I have three options and I need to randomly pick one (in JavaScript). But not equally random. I want there to be a 10% chance of the first option, 20% chance of the second one, and 70% chance of the third.

Here are some ways to do that.…

Read Article →

Numeric Inputs – A Comparison of Browser Defaults

The spec, purposefully, stops short of telling implementations (browsers) how to handle UI. In this article we're looking specifically at <input type="number"/>, and you might be surprised to learn that the spec specifically says:

This specification does not define what user interface user agents are to use.

It goes on to explain that different languages, cultures, and regions might have good reason to handle numeric inputs differently. So browsers are on their own here, and perhaps this time …

Read Article →

Introduction to WordPress Front End Security: Escaping the Things

If you're a WordPress developer that writes HTML/CSS/JS (which is 100% of theme developers and 99% of plugin developers), you need to know the basics of front end security for WordPress. WordPress gives you all the tools you need to make your theme or plugin secure. You just need to know how and when to use each tool.

For example, one huge responsibility you have as a front-end developer is to prevent unescaped content from being printed to the page

Read Article →

Textures.js 

SVG patterns for Data Visualization by Riccardo Scalco.

This is like all my favorite web things smashed together. Beautiful design, SVG, accessibility, programmatic control with JavaScript, and open source. #swoon

Sponsor: All Courses on Skillfeed Free for a Month 

For a limited time, Skillfeed is offering access to all courses and tutorials for free! Web designers and other creative professionals can pick up career-building skills in web and graphic design, CSS, Adobe software, and more, from anywhere, at anytime. To celebrate its launch, Skillfeed is offering 30 days of free access to hundreds of online courses. Take your web design skills to the next level today. Don't miss out!

Probably Use initial-scale=1

If you're doing responsive design, you're using viewport <meta /> tags. These tell the browser what width it should render the viewport at. If you don't use this tag, it will render at the device's default, which almost certainly isn't what you want. But even if you are using viewport <meta />, there are subtle differences in the value you put in it.

I just wanna focus on one little difference here.…

Read Article →

#137: SVG is for Everybody

Rather than a typical screencast, this is a video taken of my talk SVG is for Everybody recorded by the Treehouse gang at BlendConf. Of course there is far too much about SVG to cover in just one talk, so it's mostly me trying to convince you that SVG is very cool, where to get it, how to use it, and that kind of thing. Also a whole part about using SVG as an icon system and how that …

Watch Video →

More Blog Posts →