You might have seen the project checklist on our website.

It’s a public record of the main things I’ve done and got coming up soon during the new website build project. It’s not a master project tracker or anything, because quite frankly that’s overkill when it’s just me doing it for me.

But a live to do list is pretty fun and has a few nice features that make editing it pretty easy, and keeping it up to date straightforward.

How I started thinking about a live website to do list

I thought about trying to embed a Notion page, or some other app, but one of the rules I have with this new site is to make it as light on plugins and embeds as possible.

I also wanted something more bespoke looking.

So I started thinking about what I wanted it to do:

  1. Be bespoke – I wanted my own branding, fonts, colours etc.
  2. Be easy to update and change – no fiddly design tweaks every time I wanted to add something or move an item up or down
  3. Update checked items without me having to swap an image every time
  4. Automatically apply a sequence of colours for the ticks
  5. Be fun to read

Ok, how I made the to do list

I started with advanced custom fields (ACF).

ACF is well known and well loved by WordPress peeps. It basically gives you inputs (like form fields) on the back end of a website that can be displayed on the front end without needing to add new code yourself. It makes updating, adding and removing those items easier, especially for clients when they want to update and edit content without going into code.

It also makes displaying items in more than one place far easier too.

Here’s what the interface on the back end looks like. I can easily add and move stuff around too with drag and drop and little plus and minus buttons.

Displaying these on a page

Then, once I’ve got my stuff, all I need to do is show the items on the page.

Now all I need to do is create a page, and then create a little layout for my display:

This is what the builder looks like…I just need to create a layout for one checklist item, and then set it to repeat and loop through all of them.

Bricks has a really useful interface for getting info from a repeater field. All I need to do is ask it to go and get the info from the repeater, and it will display the total number of items in that list, using the layout I created for one item. That’s why it’s called a repeater, y’know, cos it repeats something.

Pretty coloured checks

For the checkboxes, I created a checkbox svg image in Figma, then I created another one and put a tick in it.

SVG’s are a kind of graphic file where the image is built from code, and you can take that code and adjust it. So I took that code and adjusted it. I purposefully didn’t set a colour on the tick, because I wanted it to change on a loop.

Displaying checked vs unchecked items

I added both the unchecked image and the checked image to the layout, and then set some conditions for their display. All I needed to do was reference the name of the checkbox field in the back end (which is is_completed) and ask it to show one of those images depending on if it was checked or not…

For the unchecked box I added a condition that says “only show this image, if the item’s checkbox is empty”

For the checked box I added a condition that says “only show this image if the item’s checkbox is not empty”

Hey presto, if an item gets ticked in the back end, it shows the right image on the front.

Looping through colours

I also wanted to have my ticks all different colours. Rather than create and upload 8 different versions of the image, using an svg allows me to dynamically change certain properties using css.

I wrote some code that says “every time one of these items appears (the tick in the svg), apply a colour following this sequence”. And it does just that.

It just loops through the 8 colours I’ve set.

What I could have done, but didn’t do

There are some other things I could have done, but I haven’t done because I don’t think its worth it…

  1. I could have made it so that the first check always started on the red colour – it doesn’t. It starts as red on the first item on the list, but because that checkbox is hidden, you can’t see it. That’s why the first check on the image above is yellow.
  2. I could have set it so that the checked items automatically drop to the bottom of the list, even if I haven’t moved them in the back end. I didn’t think that was needed, and I like having an organised list in the back end anyway.

And its that sort of thing that shows why I love WordPress and code, and not Squarespace, or Wix. You might be able to do that sort of thing there, but probably not.

AND…if I am organised and keep everything together, I can reuse all of these functions on other websites. I just need to keep the code and the instructions together for a nice little feature I can offer clients…interested?