Categories
Kubernetes

Kubernetes: WordPress on GKE using Cloud SQL

Create MySQL database Click CREATE INSTANCE. Choose MySQL. Choose an Instance ID and Root password. Click Create. Click on the USERS tab. Click Create user account. Insert wordpress as the User name and create a Password. Click CREATE. Feel free to use openssl to create a password. openssl rand -base64 32ux9ftpLM6YSB8gnCB+LOomCqp+gPlnk63JJEzCEp1Uo= Click the DATABASES tab. […]

Categories
Wordpress

WordPress Full Width Post Template Twentyseventeen-Child

How to create a wide Post template for the Twenty Seventeen theme. This post assumes you are using a Twenty Seventeen Child Theme. Step 1 Copy single.php from the twentyseventeen folder into your twentyseventeen-child theme folder as a new file named single-wide.php. cp /var/www/itsmetommy.com/public_html/wp-content/themes/twentyseventeen/single.php /var/www/itsmetommy.com/public_html/wp-content/themes/twentyseventeen-child/single-wide.php Step 2 Edit single-wide.php within your child theme folder. Add the following at the top of the page […]

Categories
Wordpress

WordPress 5 Minute Install

This setup assumes that you are running a web server and mysql on the same server. Step 1 cd into your root directory. cd /your/root/directory Step 2 Download and unzip. wget https://wordpress.org/latest.tar.gz && tar -xzvf latest.tar.gz && rm -rf latest.tar.gz && cd wordpress && mv * .. && cd .. && rm -rf wordpress Step […]

Categories
Wordpress

WordPress Full Width Page Template twentysixteen-child

If you’ve read my previous blogs, you’d know I am using a child theme. I noticed that the theme didn’t come with a full width page template, so here are the simple steps to create one within your child theme. Reference: https://itsmetommy.com/2015/12/20/wordpress-child-themes/ Step 1 Copy page.php from the twentysixteen folder into your twentysixteen-child theme folder as a new […]

Categories
Wordpress

WordPress Staging Website

There are many methods to create a staging site with software plugin-ins, but I’m going with a more manual approach in this blog. I am keeping the staging site on the same server as my live site to keep the server environments the exact same, not to mention it makes backups a little easier. Create a staging directory […]