Tips

Categories:Web DesignWordPressBusinessJekyllRandomMovies

03 Jan 2024

Foolproof Flexbox: Fixing Flowing Frustrations

I recently encountered a frustrating issue while using flexbox for a 2 column layout on Brush Ninja. One column could have any width, while the other had a fixed width for a skyscraper advert. However, I faced a problem where...
28 Sep 2021

Creating Generative Art with PHP

These last few weeks I’ve been experimenting with Generative Art, using PHP. You can see the evolution of my latest series on Twitter. Generative Art is creating artworks through programming. Generative art has a few different names, Procedural art and...
06 Apr 2019

Remove Jetpack Social Links

I recently had a theme customer ask how to get rid of the Google plus link on their social menu.My recent themes use a social menu setup similar to the one found in the TwentyNineteen theme. This involves setting up...
26 Sep 2018

WordPress get_post_gallery() Gutenberg Polyfill

I’m working on a new WordPress theme designed for Gutenberg, however Gutenberg isn’t finished, and there are elements that won’t work until the plugin is merged with core.One such issue, that I ran into this weekend, is that get_post_gallery() doesn’t...
13 Mar 2018

WordPress: The Difference Between is_home and is_front_page

When making WordPress themes there’s 2 functions that are really handy. is_home and is_front_page. I use them all the time in both themes and plugins. But I can never remember the difference between them.is_home vs is_front_pageOn the surface they are...
25 Jun 2017

Using Git Hooks to Clear Cloudflares Cache

I have a couple of sites powered by Jekyll on Github pages, and I use Cloudflare to help make them nice and speedy (and to get around the github pages traffic limits). However, this means that each time I update...
16 Jun 2017

Fixing Theme Issues with WordPress 4.8 Media Widgets

WordPress 4.8 has just been released and, whilst not a ground breaking update, it includes some nice features that make WordPress more pleasant to use.One of the main areas focused on is some new widgets. There haven’t been any new...
06 Apr 2017

Fixing Typographic Widows in WordPress

Typography on websites is hard – especially if that site is powered by a CMS such as WordPress. Making the text on a site look good when the screen size, or content, can be changed means that often you have...
10 Jan 2017

WordPress Jetpack Admin Backup: For When There are Problems

I’m a big fan of the Jetpack WordPress plugin. I support it in all of my WordPress themes, and have even contributed to its development. However it’s not perfect, and I have recently had some issues with the new React...
10 Apr 2015

Adding Menu Descriptions to WordPress Menus

In WordPress there’s an option to add custom descriptions to Menu links – but by default there’s no way to display these descriptions. I’m currently redesigning Binary Moon and wanted to add descriptions to the menu – so I thought...
06 Apr 2015

Disabling Website URLs in WordPress Comments

These days a lot of spammers submit spam comments that are perfectly legitimate apart from the fact that they link somewhere. So I thought I would disable the website url field in the comments so that comments can focus on...
15 Nov 2014

Calculating nth-child CSS Selector Formulae

I did quite a lot of maths at school. I wasn’t amazing at it but because I knew I wanted to work in computers I thought it would be handy. Fast forward 16 years and I now realise that I’ve...
06 Nov 2014

Updating SourceTree Git Login Credentials

At work we use Git for versioning our code. We also use the suite of Atlassian products for managing tasks, code, and deployment. As such I use SourceTree a lot to manage my code. We’re also security conscious and so...
25 Mar 2014

Using Youtube Thumbnails on your Websites

I seem to find myself working with Youtubes thumbnail images quite a lot (for instance on Miniclips videos section) – and I am always having to go searching for the parameters to use to generate those thumbnail images.The highest quality...
20 Feb 2014

Fixing CSS Transitions in Google Chrome

I had a weird problem yesterday where I had applied a css transition to an element that was fading from opacity:0.1 to opacity:1 – and along the way it seemed to change in size or position.The reason for the change...
01 Dec 2013

WordPress Improved Human Time Difference

WordPress has a built in function, called human_time_diff, for creating messages that say how long ago a post was published – however I think it is confusing when you have posts from a long time ago that read “posted 15...
26 Nov 2013

Note to Self: Using SVN Diff

At WordCamp London last week I made my first contribution to WordPress – a bug fix for the Twenty Fourteen theme that’s being released with WordPress 3.8. Part of doing this involved created a patch.Now I know this is pretty...

Categories