wordpress

All posts tagged wordpress

WordPress Logo Cake

WordPress is a great way to get a site up and running quickly.  A lot of people think it is just for blogs but it can be whatever you’d like it to be with its customizable themes and content manager.  There are hundreds of WordPress themes online and a lot of times you might really like everything about a theme except for a few changes.  To make those changes the best thing to do is create a child theme.

A child theme is a way to update and make changes to a base theme.  There are just a few steps you need to take to create a child theme and then you’ll be ready to make changes.

  • Create a directory in your themes folder for your child theme
    • The general naming convention is to name the folder the name of the theme with a -child appended to the end. Example: greattheme-child.
  • In the child directory create a style.css file.  It must start with the following lines.

Be sure to change each of the lines to suit your theme’s needs.

  • This stylesheet includes everything from the parent stylesheet so this is just to override or add to the parent theme.

Your child theme can override any of the files found in the parent theme.  Most of the time this includes the functions.php file.  For functions.php it does not override it but instead is loaded in addition to and after the parent functions.php.  The functions.php file is a basic PHP file with an opening and closing PHP tag with all of your PHP in the middle.

Creating the folder for your child theme with the style.css will let it show up on your WordPress theme selection.  When the parent gets updated you shouldn’t need to update anything for your child because they are loaded together.  You can make all the changes you want to the base theme.  Hope this helps people get started on changing and customizing a theme for WordPress.  If you have any thoughts or comments on creating child themes in WordPress leave them below.

Starting Again

Hello,

Welcome to my new blog.  Created for me to take notes on my every day workings and findings in the areas of web development and computer science.  I will try to update regularly with notes that I take each day working on the various projects that I do.

A little about myself, I am a recent graduate of the University of Utah with a Bachelors Degree in Computer Science.  I work full-time as the software engineering manager for a textile testing company and do sub-contract work on the side.  I created this blog as a place to keep my notes, establish discussion, and learn the tricks of programming and designing WordPress sites.

The site is named Eric Saupe, as that is my name, and the tagline (for now) is Things my wife doesn’t understand.  Often while I was at school and coming home from work I would want to tell someone about the cool new things I learned or discovered and my wife, Carly, was always the only one around so I would tell her.  She would smile and nod her head but she would often tell me that she has no idea what I’m talking about nor does she care if I’ve created an algorithm to minimize BDD variable lists or found a cool new way to generate and save forms using Django.  I needed a place to let my thoughts go and this is what I hope to accomplish with this site.

I hope you come back often and I hope it is as beneficial for you as I hope it will be for me.

-Eric