WordPress has a genius and at the same time annoying feature that automatically wraps inline elements in “P” tags for you. The nerd that wrote the function “wpautop” forgot to provide us an option to populate the array of defined block level elements in-case we wanted an image or perhaps even a span tag treated as a block level element and not wrapped in a P tag automatically.
After much research and not find a single straight forward answer that worked, I devised my own little solution. Basically what we have to do is create a new function called “wpautop_forked” inside of your theme functions.php file and then remove the annoying wpautop filter function and specifying our own instead. Here is the code below, function taken from the wp-includes file formatting.php for the latest version of WordPress at the time of writing 3.0.4. View the file and function on WordPress Trac here.
I’ve found the solution if you have ever used the font face technique and encountered an issue where the text looks bold on a Mac yet looks perfectly fine on Windows. It’s almost like the font size or weight is wrong. But, as you’re going to learn, that is not the issue.
As of 2023, I still encounter this CSS issue, specifically in Chrome on Mac. It’s only with certain fonts, but this issue doesn’t appear to have gone away entirely.
Codeigniter is an awesome framework, it’s idea of a parser library that ships with it is not. I have written a simple library that extends Codeigniter’s native view loading to allow you to use Smarty 3 in your Codeigniter projects to render your views.
Requirements: Codeigniter 2.0 as this library uses the core and third_party folders, although with some changes it will work with 1.7.2 / 1.7.3 versions of Codeigniter. Features: Extends native Codeigniter view loading so you can still use $this->load->view() to load your templates. This also means that if your Codeigniter application is using $this->load->view() you won’t need to change any of your code to use this library. Allows you to use Smarty specific features including template inheritance inside of your views. Uses your views directory for loading templates but the location of views can be changed if you don’t use the standard CI views folder. Comes bundled with the latest version of Smarty already. Install: Copy all of the files from the download zip off the repo into your application directory. Then you should be able to just load Smarty views using the native $this->load->view() notation.
Did you upgrade to iTunes 10 and discover that when you connect to your AirTunes what once was normal volume levels are now non-existent? I spent days trying to find out the problem.
I would connect to my AirTunes like I normally would but I would have to turn the volume up on the amplifier all the way just to hear my music (well, barely hear it). Turns out Apple introduced some volume control panel in iTunes and by default the volume of AirTunes is almost all the way down, wtf?
When the amazing content-aware fill feature was announced a little while before CS5’s impending launch the first thought that came to mind was, “Am I going to be able to remove watermarks from iStockPhoto images with it?” So when a copy of Photoshop CS5 recently fell into my lap, I decided to test this theory out.
Below are images with both the watermark and watermarks removed from the images, no more than 3 or so minutes was spent on the images. I’m sure with a little bit of time spent on using the tool carefully, you would get a much better result.