Custom conditional statements around your WordPress enqueued stylesheets

You may be aware that you can add conditional statements around your WordPress enqueued CSS styles (such as <!–[if gt IE 7]><link …/><![endif]–>) to load the script for certain versions of Internet Explorer. As handy as this is, it doesn’t cater for all situations. This tutorial will show you how you can expand WordPress to add any type …

Prevent users from sharing login credentials in WordPress

As any Information Governance expert will tell you, sharing usernames and passwords is bad! Fortunately we can boost your WordPress security with this tip. Although nothing is as good as educating your users as to why they shouldn’t be sharing their usernames and passwords, in WordPress we can certainly make it difficult for them to do …

How to add items to robots.txt with WordPress

One thing that I love about my job is that most days I learn something new. Today I learned that WordPress auto-generates its own robots.txt file, and that there is a filter that you can hook into to allow you to add your own rules to the file. Working with one of our partners (we often provide business-to-business support …

Contributing to WordPress Core for Absolute Beginners

At my company Make Do we only develop websites and applications with WordPress. However I have never made a submission to WordPress Core, that is, until today. This blog post details my first experience of contributing to WordPress Core, and hopefully it will provide a little help for any other budding contributors. Don’t get me wrong, at Make …

Creating a Custom CMB2 Link Picker Control for WordPress

In this tutorial I will look at how you can create a custom control to extend the functionality of CMB2 (Custom Meta Boxes 2) by WebDevStudios. At Make Do we only develop websites (and web applications) with the WordPress CMS (Content Management System), and when a new project lands you can guarantee that there will be a requirement for us to …

Managing a Large Website Using Task Based Navigation

Before I co-founded Make Do, I spent a great deal of my web development career working for public sector organisations such as the NHS and local government. During this time I learned a lot about managing large and complex websites, and I figured I would share my knowledge with those of you that may be in the …

Debug PHP with Vagrant using Xdebug and Sublime Text

Following hot on the trail of my recent post about getting started with Vagrant, I figured I would let you know how you can debug the PHP that is running on your Vagrant box with Xdebug, using your host IDE (in this case, everybody’s favourite editor Sublime Text). Xdebug will allow you to place breakpoints in …

Getting started with Vagrant

After my tutorial on how you can compile SCSS and JavaScript with Grunt, I figured I would delve into the world of setting up distributed development environments with Vagrant. However this tutorial will give you a good insight as to how Vagrant works, and if you have an urge to know how things work behind …

Compile SCSS and JavaScript with Grunt

According to its ‘read me’ file, Grunt is a task based command line build tool for JavaScript projects. However it is much much more than this. At Make Do, Grunt is a fixed staple in our front end workflow. We use it for compressing images, creating documentation, auto-compiling Modernizer, and a whole host of other …