Posts

How to Add Visible Text Descriptions into the WordPress Theme Customisation API sections

There is no denying that the WordPress Theme Customisation API is an awesome addition (added in version 3.4) however there are some things that it can’t do out of the box and if you’re not a super developer capable of creating your own customize classes to create custom sections and settings with textual descriptions then you’re fresh out of luck. The Theme Customisation API has support for a description attribute you can add to your sections like so:

Fixing The Google Maps Broken Zoom Control and Streetview Icon Issue

Chances are if you’re developing a responsive website and using a Google map you will encounter an issue where the zoom control and street view control appear to be broken, they’re there but not clickable and look corrupted. The issue is the usual process of developing a responsive site entails of setting max-width: 100% to all images on the site in the form of the following: img { max-width: 100%; } This will also break your Google Map controls. The simple fix is to fix the max-width property by targeting your map container with the following CSS:

Do Not. I Repeat, Do Not Host Your Site With Bluehost

The saying you get what you pay for rings true. Recently while working with a really nice client (just one lady running her own unique business) I came across Bluehost. She had a hosting account with Bluehost, the “Platinum Pak” when a hosting company deliberately misspells the word pack like a teenage girl texting her friends, it does ring some alarm bells. But having had nothing but a great experience with their rival Hostgator (I used them for years before my needs went beyond it) I reserved my judgement until I tried to get support.

Howto: Responsive Facebook Comments Box Using CSS

Recently while developing a site for a friend they wanted Facebook comments instead of the regular WordPress comments. Integrating was very easy, however when it came to making the site responsive the Facebook comments box which is an iframe didn’t want to play along and instead was being cut off. After trying numerous solutions online (all which seemed to be out of date) I eventually got it to work using the below code. Hopefully this helps you out as well.

An Annoying Firefox File Input Width Bug (With Fix)

in all my years being a web developer I’ve never noticed Firefox has an annoying problem with file input fields and the size attribute. For you see if you have a file input field in a form with the size attribute specifying the number of characters in width the input is, you’ll notice setting the width via CSS is completely ignored regardless of whether or not you use an important declaration.

Google finally releases Google Maps for iOS App — Internet explodes

We can all rest easy now that Google Maps have landed in the Apple app store to much fanfare. While the hate directed towards Apple’s bundled iOS maps was blown out of proportion, Google’s new shiny maps app which features turn-by-turn voice directions, a slick smooth interface and vector maps shows that Apple really did drop the ball when it came to their own map application. The release of Google Maps for iOS came out of nowhere. Google have been rather ambiguous about their plans to release Google Maps for iOS to the point where people questioned whether or not Google would even release a standalone app for iOS.

Github removes downloads API and the cheapskates come out of the woodwork

Github have been on a change binge of late, revamping Gist and continually adding in new features to their main core product but in this case they’ve removed a feature which the outrage in this Hacker News thread shows was loved and used by many. The downloads tab used to allow files to be uploaded independently alongside a repository, for example the repository iteself might require compilation and so the author might compile the source and upload a .zip file of the compiled application. While the arguments for the feature are som4what warranted (especially those who host their projects page using Github Pages) the people that are complaining are cheapskates who have been leeching off of Github’s generous unlimited bandwidth for far too long.

The Future Has No Place For Tablets

Tablet devices really irritate me, I can’t stand them. I own an iPad, but it just lays around collecting dust occasionally it’ll be moved to a safe place, otherwise it just sits on my desk and sometimes even my cat will sit on it. The iPad was a gift for Christmas from my employer, I had every intention of using it to use on the train rides in the morning on the way to work instead of carrying around my Dell XPS 15z laptop, but I never actually ended up doing that for you see, all tablets have one problem: they’re touch screen devices. While the Surface from Microsoft has an optional keyboard cover, it’s still a touch screen device at the end of the day.

Do you really know Javascript or just a Javascript framework?

Every web developer you will mostly encounter (a good portion of them anyway) is a liar. They’re lying to themselves, they’re lying to their colleagues and family, they’re lying to their employers. The biggest lie is being told since, “No honey, your butt doesn’t look big in those tight jeans” What am I talking about? Javascript. Most developers if asked would tell you that they know Javascript quite well, but don’t know it as well as they should and actually really only know the frameworks they’re using, usually jQuery. This leads me to these questions: do many people actually know Javascript and have frameworks created a generation of developers who don’t know the underlying language they’re using? You’ve learned the framework, but do you understand the language?

Introducing Infield Labels for Gravity Forms

If you’ve ever had to develop a form in WordPress before then you’d know without Gravity Forms it’s a very painful process. Recently while using the Gravity Forms plugin I was asked to develop a form with infield labels instead of the standard HTML label on-top. Out-of-the-box Gravity Forms supports no such functionality, so I did what any good developer would do and created a plugin and uploaded it to Github.