Producing images of the perfect size, when you create a Web site that targets multiple device classes with very different screen sizes is always a problem. There are a number of solutions out there, but they all require some kind of server-side detection and image wrangling. tinySrc is a nice and simple solution that takes away most if not all of the legwork. Possibly the only downside of tinySrc is that it relies on server-side detection itself. A lot of developers that worked with browsers like Chrome, Firefox and Opera advocate for client-side detection where it’s the browser that tells you about its capabilities instead of relying on a static database. I will not go into the details of why and when one is better than the other, let’s just say that tinySrc already gives you the power of the server-side, with my little software you can also benefit from the power of the client. Continue reading “Responsive images and tinySrc”
Get Google Analytics for WordPress to work for all mobile devices with WordPress Mobile Pack
All this is great, but what about mobile devices?
W3 Total Cache and WordPress Mobile Pack configuration
Since release 0.9.0 W3 Total Cache has an excellent mobile support. The author has done a great job with this update and now it works smoothly. Different mobile plugins or themes might require some slightly settings, but the default should work for most cases.
Configuring WordPress Mobile Pack
Continue reading “Getting W3 Total Cache and a mobile plugin to work in WordPress”
If you are using WordPress for anything critical beyond your local football team, then you know that the use of a cache plugin is a must.
WP Super Cache is the best known cache plugin, if not the most famous plugin of all. Initially it did not play well with admins that also wanted a mobile presence and it is very simple to explain, the whole purpose of the cache is to generate the file dynamically once, store it and then serve it again without any further computation. As the years went by, mobile became more important and WP Super Cache integrated a basic mobile support. Recently donncha introduced a fundamental new feature, the ability for other plugins to define actions. I will not go into the details of how this works and what you can do, you can read all of it on the WordPress site.
Continue reading “Making Super Cache and mobile work well”
After many hours of work spread over a couple of months, I have finally released the first version of the Nokia Mobile Theme on drupal.org.
The theme is really a theme on steroids! While normally it should just deal with printing out to screen a few tags and content, in my case I had to add a number of functions for device detection. We wanted to be able to distinguish between a basic mobile device and a high-end one, plus we laid down the foundations for a mid-end presentation. Since the Mobile Plugin did not provide the level of detail that I needed, I had to create my own functions that at this stage are mostly overriding what the plugin does. A lot of the experience made with the WordPress Mobile Pack was put to good use, fortunately.
The work is not over, the plugin is good, but I think it could do better and for this reason I’ve teamed up with the author, Teemu, and we will release some interesting updates such as a new light detection and some extra extensibility that should allow template designers to have more freedom.
Feedback is very welcome, of course, either here or on the Drupal site.