Categories
Code Linux MAC UNIX Wordpress

WordPress Backup on CentOS

Now that I’ve moved my website over to CentOS, I’ll be showing you how I do backups. My Setup VirtualBox – CentOS web server running WordPress iMac – connected Drobo Goal Run daily mysql backups Run weekly website backups Only keep the latest two backups Run daily rsync’s to my Drobo from my iMac CentOS — […]

Categories
Code Wordpress

WordPress Google Font with Child Theme

I choose Open Sans as my font for my site (as of writing this post). Now that I’ve created a child theme, I want to change the font. To do this, we will be working with our style.css and functions.php files within our child theme folder. Update functions.php function google_fonts() { $query_args = array( ‘family’ […]

Categories
Code Wordpress

WordPress prismjs with Child Theme

Step 1: Go to http://prismjs.com/download.html Step 2: Select your theme and languages Step 3: Download JS and CSS files (bottom of the page) Step 4: Upload files into child theme folder Step 5: Update funtions.php with the below code Step 6: Apply css <pre> and <code> class (see below examples) <pre class=”line-numbers”><code class=”language-css”>pre { border: 1px […]

Categories
Code Wordpress

WordPress Child Themes

The main reason to create a child theme is so that your edits do not get overwritten when doing any sort of updates to your main (parent) theme. The steps are fairly simple. Source: https://codex.wordpress.org/Child_Themes This example is for the Twenty Sixteen theme. Navigate into your themes folder. cd /<your_website_root_folder>/wp-content/themes/ Create a child directory within your themes folder and […]

Categories
Code Wordpress

Create a Twitter Sidebar Widget within WordPress

This is how you create a simple Twitter sidebar widget that shows your last few tweets (I hate that word) from your Twitter account in three simple steps. It was actually really simple. I was initially looking for a plugin, but figured out I didn’t need one. Step 1: Sign in and create a new […]