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
Code Internet Wordpress

Browser Caching via .htaccess

I added simple browser caching through my .htaccess file. vi .htaccess IMPORTANT: Add the following to the top of the file. ## EXPIRES CACHING ## ExpiresActive On ExpiresByType image/jpg “access 1 year” ExpiresByType image/jpeg “access 1 year” ExpiresByType image/gif “access 1 year” ExpiresByType image/png “access 1 year” ExpiresByType text/css “access 1 month” ExpiresByType text/html “access 1 month” […]

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 […]