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

Code Internet

PHP Switch Statement – output result from selected option

I was asked to come up with a way to give users a list to choose from and output a result based on their selection. I decided to use PHP. I ended up using a Switch Statement to accomplish this task. I am not a PHP expert  but was happy to figure this out on […]

Design Wordpress

WordPress: WP-Syntax – Pre/Code

I was looking for a simple way to show/highlight the code portion of my blog. The regular <pre> tags didn’t do it for me. It just didn’t look professional. After a quick search, I came across a WordPress plugin called WP-Syntax. “WP-Syntax provides clean syntax highlighting using GeSHi — supporting a wide range of popular […]

Design Internet Technology

Web Design: <pre> <code>

Have you ever used <pre> or <code> to highlight the actual code on your website or blog and noticed it was cut off due to your website’s limited page width? There is a simple solution. All you need to do is apply style=”overflow: auto;”. <pre style=”overflow: auto;>PLACE CODE HERE</pre> For Example: Code: <pre>PLACE CODE HERE: […]