Subscribe to the RSS Feed : Read our Blog Posts from the convenience of your favourite Reader

WordPress Child Themes – Theme Development Made Easier

December 12th, 2010 . by Anup



WordPress Child Themes – Your Gateway to theme development paradise

Child themes are a fairly new concept. I’ve been hearing about them for some time now. Never really bothered to check out before. But luckily for all of us, I have now. This is not complicated. This is somewhat easy to understand . So don’t fret about all the lingo.

Basically, you create themes that rely on other themes as templates. Now that it turn means you only have to change the child theme to make changes to your WordPress theme .

So why bother you ask ?

As it turns out what most wordpress theme designers do is build on top of existing themes they like. I’m guilty of that myself. Why write everything from the beginning when you might need only a few things changed. For example Serving Niches itself it built on themeorrhea by JTK. I loved the way his theme was built. It was simple and didn’t have too many files cluttering up the back end.
Minneapolis St. Paul WordPress User Group #1

The basic layout for any theme doesn’t have to be different. Now previous to WordPress 2.7 I would have had to change the theme files using editor and add my embelishments. Everytime a new version of the theme was released , I would have had to copy paste all my changes to the new theme. Almost rewrite the whole thing. If you had seen the serving niches theme files , you wouldn’t recognize themeorrhea. There were way too many changes made. So imagine having to write all that again on top of the new theme. It would take time.

See now I don’t have to do that. Now with the concept of child themes , I could simply put all my changes in its own folder , so when I upload a new version of the original theme , I’ll only be rewriting the theme’s files not my changes.

So how do you make use of child themes ?

Child themes are put in the same folder as any other theme on your wordpress installation.

wp-content/themes

To build a child theme , you will first need a mother theme or a main theme to build a child theme on.

All you need to do is to make changes to the style.css file . You need it to tell wordpress that this theme is a child theme.

Neat huh ? Imagine all those hours you’d have to spend rewriting and testing and playing and rehashing and indenting and what not all that code if you were to update the mother theme.

The mother theme style.css. Below is the beginning of a typical style.css .

/*



Theme Name: Your Theme Name

Theme URI: http://your-theme-homepage.com

Description: Oh what a lovely description of your theme you'll put here!

Author: Your Name

Author URI: http://your-website.com

Template: If this is a child theme, you'll set the template theme's folder name here,   otherwise don't put this here

Version: A version number

.

Any general information, license statements, plugin requirements, or any other information you

may want to share.

.

*/

You do need to make a few changes to the child theme’s style.css . The one file it needs is style.css . You need to put the basic information below in it. Below is an example of how you’d want to fill out the child theme style.css file.

Theme Name: will the child theme’s name

Theme URL: url of your theme if you choose to upload it somewhere so that people can download or purchase it

Description: small description of the child theme

Author: your name or nick name

Author URL: if you have a website. Get a free one atleast mate if you don’t have one.

Template: This is the important option. This is where you mention the location of the mother theme. So say the mother theme is located in wp-content/themes/themeorrhea/ .

You’d write “themeorrhea” here. So it would be Template: themeorrhea .

Version: this is you first child theme ? Call it version 1.0 . you could call it 10.0 if you wanted. It doesn’t really matter.

An example of what a child theme’s style.css would look like.

/*

Theme Name: Sandwich

Theme URI: http://anupvasudevan.com/sandwich

Description: This is Sandwich, a child theme for themeoreaa.

Author: Anup

Author URI: <a href="http://thor/">http://</a>anupvasudevan.com

Template: themeoreaa

Version: 1.0

.

You need to have both Sandwich and Themeorrhea in your wp-content/themes/ folder for this

theme to work.

.

*/


This child theme will be like any other theme . You’ll be able to activate it like any other theme from the Appearance page in wordpress admin .

So what about the remaining files ?

Simply add them to the child theme folder. The child theme’s files get precedence by default over the mother theme’s files. In other words, should you add a header.php to the sandwich folder at wp-content/themes/sandwich , it will be chosen over themeorrhea’s header.php . Thereby replacing it. The rest of the files will be used as is. If you choose to use the mother theme’s files , do not make an empty file in the child theme folder.

That is all . There you’ve made it to the end.

You should be able to use child themes on WordPress installation now.

An example use of this would be during the holiday season. You want to change the look for maybe December 25th alone or even the week leading up to December 25th .

This way you don’t have to write the code all over . You just need to build a child theme. Maybe just change the background image to something with leaves and bells.

You are limited only by your imagination.

image credits : http://www.flickr.com/photos/iamperegrino/2913018697/ WordPress stickers & stationery
http://www.flickr.com/photos/myklroventine-events/3832855830/ WordPress screen

Audiobook MP3s PC & Video Games

Cult Control Tactics In Internet Marketing Part IX

April 21st, 2009 . by Anup




Tactic Nine – God-Like Confidence


Congratulations You !

You made it to Cult Tactic Nine or maybe you made it only to Cult Tactic Nine.Either  Here’s a Link to One Sentence Persuasion By Blair Warren. It is for FREE. Of course it is. Once You click on the Link , You will be taken to onesentencepersuasion.com . You will see ” Download the free PDF version here. ” Click on the ” here ” to open the PDF document in your Browser. Click on the Save a Copy Button to save it to Your Computer. Moving On.

For some of Us , any kind of Confidence would be wonderful. That just simply won’t do when it comes to Forming a Cult. Imagine having God – Like Confidence ! . Making a Million Dollars On the Internet will be Childs Play.

We aren’t bothered about what we can’t do. Just by what we want to do and how to get it done. Heres where I am going to mention Blair Warren once again. He describes what is known as ” The God Complex ” in his Book          “The Forbidden Keys of Persuasion ” . The Book is a Must READ . It is simply a CLASSIC .

The God Complex involves many concepts discussed in previous posts. Once again the Forbidden Keys of Persuasion discusses Cults.

Cult Leaders and Con Men are able to persuade people to do literally Anything. The rest of the Masses seem to be having a hard time giving people for Free things they NEED.

Cult Leaders and Con Men are able to persuade people to do literally Anything. The rest of the Masses seem to be having a hard time giving people things they NEED for FREE. If you’re thinking of building a Cult like Following . This Book will come in Handy. To better understand or to know more , get the Forbidden Keys of Persuasion.  There are Tons more than what I could ever hope to cover in a Blog Post. Yes , You will be one hell of a Cult Leader. Yes, I ‘m not Suggesting You indulge in Nutty Behaviour. I like it because it has the Power to ridiculously improve your Life. Yes, once again I am not talking about  indulging in Nutty Behaviour.

Quoting Dantallion Jones

” The God Complex overlaps on the previous Tactic of Chunking Up. Its about seeing EVERYTHING that can possibly happen as if its all part of the Plan and being OKAY with it.

The God Complex is about such a large view  of the World and of your place in this World that what you’re doing , at this very moment,  regardless of what transpires will be as if it was meant for You to be. “

The God Complex basically ,as I have come to Understand, is a Great Way to deal with Critizism and everything in our lives. Its a Healthy Way to deal with Everything in Our Lives.

There is so much to talk about using God Complex in Internet Marketing. I’d have to Write a Book to cover Everything. Imagine the effect it will have in Your Marketing . Your Interaction with People you’ve met on Online Social Networks. The People you meet in the Real World.

As Always

Take Care

and

Have a Ridiculously Brilliant Day !