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