‪(859) 354-4348‬

darrell@jordanwebsolutions.com

Child themes and do I need one?

Jul 8, 2020 | Blog, WordPress Maintenance

child theme

You have your WordPress site up and running, you have found a theme you like, have it installed and have modified it to how you want everything to look. You found the custom code you needed to make the color scheme just right or to make the one button in just the right spot. It’s all good and the site is launched. You come back a month or so later and you see a notification in the WordPress admin section about an update for your theme and so you click the update button. Now your colors are back to how they were before you changed them and now that button is back where it was before. What happened?

First, you have to consider what a theme is. According to WordPress, A WordPress theme changes the design of your website, often including its layout. Changing your theme changes how your site looks on the front-end, i.e. what a visitor sees when they browse to your site on the web. So, it will set the overall look of the site, from what colors are used to where everything is on the pages. So, if you change any of the files in the theme when you update the theme, it will override your changes. 

I actually had this happen with a customer before. I had added some code changes so that an image would appear on the home page based on the time of day. Once I did an upgrade to the theme, the images disappeared. 

So, how did I fix this?  A child theme. 

What is a child theme?

Well, glad you asked. A WordPress child theme is a WordPress theme that inherits its functionality from another WordPress theme, the parent theme. However, when you make changes that change the colors or where a button is on the page, these changes are made to the child theme so when you update the theme, you don’t override the changes. 

It’s also easier to back out of any changes. With a child theme, you make changes to the CSS file for the child theme and the website will reflect these changes. In a child theme, the CSS file will only contain the changes you have made. In make these same changes in the theme, you will have to find that section of the CSS file, which will be considerably larger, and then to find the changes you made and remove them can take a lot more time. 

So, in my example, I went into the child theme, made the changes I needed to make, and then, when the theme upgraded again, the changes I had made didn’t get overridden. 

How to create a child theme?

Well, you can go the manual route. You will need to login to your hosting account and to go to wp-content\themes, create a folder, and give it a name for your child theme. Then add the necessary files you need for the child theme. For example, style.css and make sure the file has all of the necessary required verbiage in the file. 

Or, you can install a plugin like Child Theme Configurator that will create this for you. Once you install the plugin, it will ask which theme you want to create the child theme for and it will create the folder and files for you. You will then activate the child theme and make your changes. 

Not all themes will need a child theme. 

Some themes now will have a section for you to make your changes and it will keep those changes for you when your theme updates. So you need to determine if your theme needs this or not. 

Making changes to a theme can be intimidating but setting up a child theme can have several benefits for your WordPress site and make things a lot easier in making these changes. If you need help in making changes or installing a child theme, please contact us and we will be more than happy to help. 

  • They put out the product I had in my mind which is never easy to do. Would recommend this company to anyone as Darrell was easy to communicate with and put a lot of effort into his work. I could not be happier!

  • Jordan Web Solutions has been nothing short of exceptional! As the Garrard County Chamber of Commerce, we had the pleasure of working with Jordan Web Solutions to design, maintain, and keep our new website updated. The attention to detail, creativity, and professionalism made the entire process seamless and enjoyable.
    In addition to delivering a user-friendly and visually appealing website, Jordan transferred and converted everything from our old website, which was handled in-house and difficult for us to keep current. This transition was managed flawlessly, allowing us to focus on our core activities without any worries.
    We can't recommend Jordan Web Solutions enough to anyone looking for top-notch web design and management services. If you're in need of a reliable partner to take your online presence to the next level, look no further. Reach out to Jordan Web Solutions—you won't be disappointed!

  • Very easy process working with Jordan Web Solutions. Excellent customer service, very quick with communication. They made my website so much better than it was before.

  • Darrell has been great to work with. Web design is definitely not my wheelhouse and Darrell is able to walk me through all of the nuances of running a productive website. His expertise and insights have been very beneficial.

  • Darrell Jordan has been helping me build my website for a couple of years now, and I am thrilled and grateful for his excellent communication, expertise and ideas, adaptability, and responsiveness! You cannot go wrong working with Jordan Web Solutions; he will quickly take your website to the next level!

  • Darrell was ALWAYS available! He was so helpful in answering all my questions and ensuring I understood all the steps I needed to take to create the most professional and appealing website for my Firm. I really liked that, because of his experience and expertise, he was able to give me advice on what may or may not be the best/most appropriate information to add, pictures, etc. The level of professionalism and his knowledge of all things IT gives me assurance I can always reach out to him for any IT solution, and you don't have to wait weeks for a response.

  • I was most impressed that Darrell was able to take the pages from my website and get them to a point where we could take the next step to refine the pages to my ideas. I was very happy with his response to my suggestions and requests on various components of the page; images, text, etc.

    After updating my site, he took some time to show me how to do my own editing and use the tools he put into place. Kudos, Mr. Jordan!

  • Jordan Web Solutions does a fantastic job of not only illustrating content, but also making sure to use phrases and words that will get your site to pop up in search engines. Professional, knowledgable, and quick. I would recommend them to anyone.

  • Darrell listened to what I wanted and designed the web site accordingly. He worked with us making changes as the site developed. He also had good suggestions and provided the instruction I needed.

  • Darrell was extremely creative, he had a lot of ideas for my website, which was fantastic because I didn't really know what was possible, or what exactly I wanted. He filled in a lot of gaps! He was also extremely patient with me, since I am not as tech savvy as some. I would definitely work with him again!

7 Questions for Your 6 Month Website Checkup

7 Questions for Your 6 Month Website Checkup

Running a digital presence without routine maintenance is like driving a car without ever changing the oil: everything seems fine until a broken link, an outdated logo, or an old phone number quietly stalls your growth. Your online footprint is often the very first...