
Home > WordPress > How Do I Make Customizations to My WordPress Site That Won't Get Lost After an Upgrade?
How Do I Make Customizations to My WordPress Site That Won't Get Lost After an Upgrade?
Posted on Friday, June 1, 2012 by Unknown

For most of us with WordPress websites we like to tweak a little bit of everything to make it look just so, and the beauty of WordPress is that you are able to do this. BUT, if you're simply modifying the files that come with the theme then every time you do an upgrade you have to re-apply the changes that you have made.
Ever lame!
A super easy solution to make sure that your theme customizations aren't overwritten is to create a child theme.
I know, I know, you're not a developer and you don't want to have to create a whole new theme all by yourself, right? Not to worry my friend, it's far more simple than you're imagining. A child theme basically borrows the files from your regular theme and acts as a holder for your customizations, so you're not re-creating everything from scratch after all.
Here's how you create a child theme to go along with whatever WordPress theme you're currently using:
1. Using FTP, navigate to your themes folder and create a new folder. You can call it whatever you want.
2. Create a text file called style.css and put it in this new folder.
3. Add this header info into the css file:
/*
Theme Name: whatever name you want your child theme to have eg. SMac's Child Theme
Description: whatever description you want here
Author: your name
Version: 1.0
Template: twentyten (or whatever the name of the theme is that you're currently using)
*/
The Template field is particularly important, make sure to type the name of the theme folder exactly as you see it in the themes folder, it's case sensitive. In the example above I've used twentyten as my main theme. The Description, Author, and Version fields are all optional.
4. Add this nifty line into your css file (after the header info) to import the css info from your main theme:
@import url("url of the main theme css file");
Now all you have to do is add any css changes you want to this new css file in your new theme folder and anything you put here will override the main theme's css.
5. If you want to make changes to any other theme files, eg. Loop.php, Functions.php, you can put them here too and anything that you add will be used as well as the main theme files. This step isn't necessary, the only file that a child theme absolutely must have is style.css.
6. Activate your new child theme - if all is ready you can log into your wp-admin as usual, go to the Appearance section and you'll see your new child theme sitting there ready to be activated. Go ahead and activate your child theme and voila!
All done! Super simple really, if you know a bit of coding, and let's be honest, you probably wouldn't be fiddling around with the guts of your WordPress installation files unless you already know a bit of coding, right?
Now you're all set to do your next upgrade, and joy of joys, all of your customizations will still be there when you're done! Yay!
Sarah MacGregor a.k.a. SMac is a Canadian Virtual Assistant, CEO of SMac To The Rescue, and Efficiency Expert who teaches small business owners and entrepreneurs how to increase their business efficiency and get unstuck. To learn how she can help your business with her Efficient Virtual Assistant Super Powers, and to sign up for her free Super Efficiency E-book series, visit her site at http://www.totherescue.ca/
Category Article After, Customizations, Upgrade, WordPress
Blog Archive
-
▼
2012
(287)
-
▼
June
(46)
- Join The Revolution With A WordPress Business Webs...
- Getting Started With WordPress - An Overview
- How Do I Make Customizations to My WordPress Site ...
- Using Joomla or WordPress on Your Site
- A CMS Website for Your Business Online, a Brief Guide
- All About CMS Drupal
- Drupal Development: The Simplest Way To Build Your...
- 5 Reasons Your Website Should Be Run On A Content ...
- WordPress Development: Get A Customized Business W...
- Content Management Systems (CMS) Lessens Your Burd...
- My Adventure to Find the Best CMS
- Classifieds Theme For WordPress
- Multilingual Development Or Support For Drupal Dev...
- Discover The Benefits Of A Free WordPress Website
- Is Custom CMS Development Really Helpful for Every...
- Choose the Right CMS: WordPress, Drupal, Joomla!
- CMS - A Tool to Build Dynamic and Creative Websites
- The Power of RSS for Internet Marketers and Bloggers
- Magento E-Commerce System
- How to Determine If You Are Someone Who Needs a CMS
- Why Choosing the Right Content Management System I...
- Building WordPress Websites With Artisteer
- Basic Joomla Components for a Spectacular Website
- How The Wrong CMS Can Ruin Your SEO
- Putting the Finishing Touches on a Website With Po...
- Five Recommended WordPress Plugins for Small Busin...
- Joomla Web Development: A New Trend In Web Develop...
- What is 'CMS' and What is the Best CMS Available?
- Choosing The Right Bandwidth To Operate On
- Off Site SEO Techniques Involving Inbound Links
- Why Is It Worth It to Get SEO Services for Your Bu...
- The Importance of Outsourcing SEO Services
- Google Penguin Update - Tips on Improving Website ...
- How to Choose and Use Keywords for Search Engine O...
- Why You Need to Hire an SEO Company
- How Good Web Design Benefits SEO
- Boost Your Profitability Through Press Release Dis...
- Optimizing Your Websites for Popular Search Engines
- Is SEO Really Dead?
- Article Marketing - How To Use It Effectively?
- Basic Method of Search Engine Optimization
- What Changes Does The Google Penguin Update Bring?
- Discover Why SEO Is a Must in Internet Marketing
- Maximizing Your Search Engine Optimization Reach
- Affordable SEO Tools
- Article Submission Services - Creating Articles Th...
-
▼
June
(46)
clic
Popular Posts
-
For those that are trying to find out more about Pay Per Click (PPC), you'll discover that by using PPC search engine marketing effecti...
-
Not much time has passed since most webmasters became familiar with Google Panda. However, as opposed to what most people expected, the ind...
-
While electronic payments are preferred among many consumers, paper checks are still a prevalent method of payment that is still a popular ...
-
An intranet is a computer network that is implemented within an organization. Organizations use intranets to share information, resources a...
-
E-commerce is a boon to mankind on many fronts. Hence, ecommerce website design is a critical aspect in the global market. This is because ...
-
WordPress, Joomla and Drupal are all CMS (Content Management System) applications. These applications are mainly used to build websites an...
-
With the economy slowly recovering, it has created anxiety for e-commerce retailers. They are now cautiously checking and evaluating their ...
-
The popularity of WordPress continues to grow among small business owners and entrepreneurs, as this popular Open Source Content Management...
-
When you sell goods from a physical store, the appearance and presentation of your premises is undeniably important to the impression you c...
-
Web designers use Joomla system to develop websites and other online applications. With the help of Joomla tools you can develop very power...