Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 24th May 2011, 09:05 AM   #1
Grouchy Old Geezer
War Room Member
 
Kirk Ward's Avatar
 
Join Date: 2006
Location: Ellijay, GA, USA. (Talk about being in the woods!)
Posts: 673
Thanks: 279
Thanked 62 Times in 47 Posts
Default
Using Wordpress Child Themes
Share on: 
fb share twitter share gplus share more share

I have a "Premium" (meaning I paid for it) theme, that I want to modify. I've been told that the safest way to use a modified theme is to create a child theme from the original, and put all my modifications in that folder.

I was also told that the entire theme did not have to be copied into the child theme folder, merely the parts that received modifications.

Does that mean that if I have one PHP file that I modify, I merely need to put the modifed PHP file in the child theme, and nothing else? Do I have to build the full theme path to the file in the child theme folder?

Answers to these and other questions, such as the meaning of life, will calm my id for at least three hours. Please help me with your advice.

Thanks in advance,
Kirk

"We are not here to sell a parcel of boilers and vats, but the potentiality of growing rich beyond the dreams of avarice."

Dr. Samuel Johnson (Presiding at the sale of Thrales brewery, London, 1781)
Kirk Ward is offline  
Unread 24th May 2011, 06:28 PM   #2
Active Warrior
War Room Member
 
Join Date: 2011
Location: Nelson, New Zealand
Posts: 60
Thanks: 17
Thanked 9 Times in 9 Posts
Default
Re: Using Wordpress Child Themes
Share on: 
fb share twitter share gplus share more share

Hi Kirk,

I think a lot depends on which theme and/or framework you are using.

Here is a good resource on child themes - Child Themes « WordPress Codex
DominicF is offline  
Unread 24th May 2011, 06:51 PM   #3
Grouchy Old Geezer
War Room Member
 
Kirk Ward's Avatar
 
Join Date: 2006
Location: Ellijay, GA, USA. (Talk about being in the woods!)
Posts: 673
Thanks: 279
Thanked 62 Times in 47 Posts
Default
Re: Using Wordpress Child Themes
Share on: 
fb share twitter share gplus share more share

Thanks Dominic ...

I saw that but didn't understand it as it relates to my situation.

What I want to do is edit a PHP file that displays help content. The theme developer has the help links going to his site, and advertises his products. I don't want to send my customers away to buy from someone else.

I want to edit the child theme PHP file so it send them to my help site and not his.

"We are not here to sell a parcel of boilers and vats, but the potentiality of growing rich beyond the dreams of avarice."

Dr. Samuel Johnson (Presiding at the sale of Thrales brewery, London, 1781)
Kirk Ward is offline  
Unread 24th May 2011, 07:16 PM   #4
Active Warrior
War Room Member
 
Join Date: 2010
Location: United Kingdom
Posts: 34
Thanks: 1
Thanked 7 Times in 7 Posts
Default
Re: Using Wordpress Child Themes
Share on: 
fb share twitter share gplus share more share

Depends if the links are hard coded into the php file in which case yes you would have to edit the actual php file. Have you opened up any of the files to locate the links?

Live Track Mobile Spy - Android Spy Software
Postcode Pal™
- Geo Datasets for GB, NI, CI and the Isle of Man
vulcanscripts is offline  
Unread 24th May 2011, 09:07 PM   #5
Grouchy Old Geezer
War Room Member
 
Kirk Ward's Avatar
 
Join Date: 2006
Location: Ellijay, GA, USA. (Talk about being in the woods!)
Posts: 673
Thanks: 279
Thanked 62 Times in 47 Posts
Default
Re: Using Wordpress Child Themes
Share on: 
fb share twitter share gplus share more share

Yes, they are hard coded, not dynamic.

I've opened the file and edited the links. I can put my own links in if I want.What I want to prevent is an update of the theme overwriting the file and me having to go through all the editing again on multiple sites.

Since the file is several layers or sub-folders down from the style.css file, I am thinking that I merely create the same sub-folder path and place a copy of the edited file there. That way, whenever the theme is updated, this particular file "should" be safe and the theme "should" continue to work as desired.

Is my thinking correct? Does that sound like what the child theme system is supposed to do?

FYI - What makes the links undesirable is that I bought a developers license that allows me to use the theme on client sites, and the help file takes the user to the vendors site where my client has to pay him to get support for the theme. Since these are customers of mine, I want to provide my own help files, which they can access without having to pay an additional fee. I think his attempt to control his help files is a bit tacky.

"We are not here to sell a parcel of boilers and vats, but the potentiality of growing rich beyond the dreams of avarice."

Dr. Samuel Johnson (Presiding at the sale of Thrales brewery, London, 1781)
Kirk Ward is offline  
Unread 29th Apr 2012, 06:21 AM   #6
Active Warrior
 
Jeff Baer's Avatar
 
Join Date: 2010
Location: Chicago Area
Posts: 51
Thanks: 29
Thanked 36 Times in 31 Posts
Default
Re: Using Wordpress Child Themes
Share on: 
fb share twitter share gplus share more share

Kirk,
I own a Woo Developers License and they also hard code links in their themes. I see this thread is about 1 year old. Did you find a solution?

Jeff Baer
Jeff Baer is offline  
Closed Thread


Bookmarks

Tags
child, themes, wordpress


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 05:13 PM.