As a follow on to my post about using a Git hook with PHP Code Sniffer to make sure that you’re committing good PHP code, this post is going to cover doing the same thing to make sure that your JavaScript passing a JSLint check. The only pre-requisite to get this to work is to […]
Author: doyle
Improve your code quality with git hooks, composer, and PHP Code Sniffer
First, let’s cover what all of these terms mean Git Hooks If you’re doing any sort of development you need to make sure that you’re using version control, and Git happens to be my preferred solution. Git offers these cool little tools called Git hooks. Hooks run bash scripts at a number of different points […]
Seeing where your functions are used in phpStorm 9
One great feature in phpStorm 8 was the ability to click on a function call and going to where that function is defined in the code. Makes tracking things down a lot easier, especially if you’re working on someone else’s code.
Responsive Tabs/Accordions using Foundation Framework
As a mobile-first CSS framework, I found it really odd that the tabs that ship with Foundation aren’t responsive. As your screen gets smaller, they just start stacking up, killing UX and defeating the point of having a mobile-first design.
Clean out your comments
Did you set up a WordPress site and not setup Akismet right away, and now you have a mountain of SPAM to clean out? You can let Akismet do it’s magic, but going through thousands of comments won’t do you any good, and it will take forever.
The Best Way To Vertically Center with CSS
If there is one thing that’s truly annoying in CSS, it’s trying to vertically center an element inside a parent. You’d think vertical-align:center would work, but normally it doesn’t. display:table-cell often has other issues that need working out. So where does that leave us? Enter transform. Most people only think to use transform to rotate […]
PHP 7 + Apache 2.4 + Ubuntu 14.04
It’s a pretty exciting time in the PHP development world. The release of PHP 7 is just around the corner. Which means now is the time to start testing if sites work with it or not. Here I’ll walk you through setting up a local server running PHP 7, with Apache 2.4 and Ubuntu 14.04. […]
How To Remove The wpadminbar CSS Push
If you’re like me you find the wpadminbar css push really annoying. When you’re trying to get the positioning just right on your site, you have to use a different browser, and incognito window, or log out, just to see how your site looks without your content pushed down. Thankfully WordPress is quite easy to […]
Font-Based Spinners With Font Awesome
This is pretty awesome, and I hadn’t noticed it before. Until now I’ve used image based spinners for everything, but now with Font Awesome you can use fonts. Which means you can easily size them and change colors. It won’t work in IE8 or IE9 as it’s CSS3 animations, so keep that in mind.
How To Get The Post Thumbnail URL in WordPress
I was working on a project that I wanted to enable lazy loading using a specific jQuery plugin, so I needed to get the thumbnail URLĀ for all of my posts. The feature was loading around 300 articles from a custom post type using a shortcode. Every article had a featured image. Which meant that the […]