Set a Cookie in WordPress
Sometimes you want to detect new users on your site versus returning visitors and display different sorts of information to them. An easy way to do this is to set a cookie. Continue reading
Sometimes you want to detect new users on your site versus returning visitors and display different sorts of information to them. An easy way to do this is to set a cookie. Continue reading
For my projects on GitHub I like to have the most recent stable version tagged so that people have an easy download link to it. So when I go from versions 0.4 > 0.5 on project (for instance), I do this. Continue reading
I’ve been working to make the Options Framework Theme into a plugin the last couple weeks, and wanted to get some early feedback. Download the code from GitHub and try it out. Continue reading
I’ve encountered a couple issues with javascript race conditions this last week. Here’s a fix you can use. Continue reading
For a little challenge I decided to turn Orman Clarke’s Photoshop file into actual code using CSS3 and a bit of JQuery. You can see a demo here or download the code (feel free to use in your own projects, no attribution necessary). Continue reading
Code snippet for checking which version of WordPress the user is running. Continue reading
The Thematic Options panel allows users to easily change the layout, upload a logo, and change the colors of the theme through an options panel. It was built primarily for other developers who want to add options for their own projects, and includes examples of how to add image uploaders, radio buttons, stylesheet selectors, color pickers, and other input fields. Continue reading
What’s the difference between the_content and the_excerpt. What if you want to use the more tag, but strip out images and objects? Big questions. Answered here. Continue reading
How to add a custom post type icon to your WordPress theme, including downloads to use the portfolio icon and directions for styling the admin screen. Continue reading
Derek Herman has released a new plugin called OptionTree that allows you to easily set up theme options for your site Continue reading
I’m working on a WordPress theme project where the background needs to change randomly on each page load. To do this I added a body_class that generates a random number between 0 and 5 for me to use for styling. Continue reading
There are a number of solutions for rendering “non-standard” web fonts on your site. I was used to ones like SIFR and Cufon where they recommend using it only on headers or certain spots on the website. I e-mailed TypeKit to see if it worked the same way, and got this reply: Continue reading