This is the source code for a Youtube tutorial I posted on my channel. Adding front-end code to WordPress is pretty straightforward. However, if we need to add code that runs on the server, for accessing the database for example things get more complicated. This is because WordPress has a very strict order of executing… Continue reading Add shortcode that reads from the database (Youtube tutorial)
Category: wordpress
Add Javascript to WordPress (youtube tutorial)
Adding a Javascript widget can make a WordPress site more interactive and engaging. The possibilities are endless from stock quotes to calculators and instant messaging. In this video we are adding a Javascript chessboard to WordPress using two different methods. The code used in the tutorial Standalone HTML code snippet
SVG Support in WordPress
SVG is a great format for graphics. Unlike the pixel-based formats such as jpeg and png, which store informations about each pixel, SVG relies on geometrical primitives such as curves, colors and coordinates. This results in a much better experiences when images are scaled, making the format ideal for icons and logos. However, SVG images… Continue reading SVG Support in WordPress
WordPress on AWS Lightsail
I migrated a local WordPress installation to AWS Lightsail. Having worked with Google Cloud in the past I have to say I liked AWS Lightsail. I don’t think GCE is equivalent to Lightsail. The latter is easier to use for standalone small deployments such as a small WordPress site. Lightsail has very affordable pods starting… Continue reading WordPress on AWS Lightsail