a designer’s adventure into web development hell
Toggle dark mode
Designing and building multiple websites
⋆ ⋄ ✧
© Jaclyn Tan 2019
A simple strategy to optimise asset delivery in WordPress
One does not simply echo in WordPress
Displaying data in WordPress often involves more than just echoing. I mean, echo will work and display output just fine, but if you want to make sure your code is as secure as possible, it's always a good idea to attempt to clean whatever data you are using first.
Using a single PHP loop to output data into multiple wrapping elements
Ever run into the problem of needing to output data from a PHP loop into separate wrapping divs? You could use the same loop twice to return data into two different divs. Or you could use this is a super handy technique to generate data *inside* multiple different elements using the same loop.
Improve page speed in WordPress with srcset
If you are serving a lot of images on a page, using srcset is a really handy way to effectively cut down page size. WordPress does a lot of heavy lifting with it's great image management and baked in srcset function, so much so you can forget about get_the_post_thumbnail() entirely.