Categories
CSS UX/UI

UIkit – a lightweight and modular front-end framework

A lightweight and modular front-end framework for developing fast and powerful web interfaces. I’ve been contributing to a project where this little UI framework is used, and it’s pretty cool. Check it out: UIkit

Categories
Blog

Updating Laravel Homestead

(!) Notice: this post is probably outdated Recently I needed to update my Homestead VM to a more recent version, because I needed to run PHP 7.2. While you can just update PHP on a current Homestead instance, I was using a very old Homestead version and wanted to update it. Moreover, I wanted to […]

Categories
Blog

Enjoyable WordPress theming with Timber (and ACF)

I was thinking of doing an in-depth tutorial on Timber. A few days since I started a draft, CSS-Tricks published “Timber and Twig Reignited My Love for WordPress“, which is a great read. However, I decided to push some of it live because this plugin deserves more love. I’ve built a lot of WordPress sites. Recently, it has become […]

Categories
Tips

Loop list in batches using Twig (or plain PHP)

Recently I had to loop through a series of elements in a WordPress template (thanks Timber), which happened to be using Bootstrap. If you ever used Bootstrap, you are familiar with the following markup: View the code on Gist. The problem here is very common. You have to: Loop every 3/4/n items. Insert a separator or […]

Categories
Apps/Tools Tips

How to fix: MySQL not starting on MAMP (Pro)

I recently had to install MAMP Pro, in order to do some separate work from my Laravel Homestead VM. After a weird Mac crash, MAMP would no longer start the MySQL server. This was the data from the logs: To fix this, go to MAMP, File > Edit Template > MySQL > [version] and add the line […]

Categories
Tips

Open a chromeless browser

Today I saw a tweet from Das Surma, where it shows how you can open a chromeless Google Chrome browser. Like this: How to Open Terminal app type open -n -a ‘Google Chrome’ –args “–app=[URL]” where [URL] is something like http://google.com Done! If you’re curious about what those flags do, -n “Open a new instance of […]