Linkin Park’s new album came out today.

Fans will understand the reference.

So. What I’ve done today…

  1. Set up a post type for testimonials using Advanced Custom Fields (ACF)
  2. Added a bunch of testimonials
  3. Made a nice little layout card for testimonials (on the home page)
  4. Set up a loop to show all of the information from the testimonials and then loop through and display them all in a nice grid
This is an example of an ACF Field.

What I didn’t do, was make each of those testimonial boxes one by one. That’s not an uncommon thing to see with designers who use page builders wrong.

But then, if you wanted to change anyting, you’d have to go into each one and change each thing manually.

When you use CSS classes and dynamic content, you only have to change one thing.

A really important principle in web development is consistency, and one way to make sure you’re consistent is to use repeatable components and elements that only need to be styled in one place. If something shares a style, it should be managed as high up the, what to all it…level I guess. As high up the level as possible.

For example, if you know that you’re always going to use a dotted border with 16px rounded corners for every single box on your website, an approach would be to create a class that sets those styles, and then apply that class to everything you want to have those styles. Then, if in the future you change your mind and want a solid border, or 24px rounded corners, you can go in and change it.

More on that sort of thing soon.

For now, you can follow the big to do list if you’d like to.