Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Is a customized child theme updated during upgrades?
Avatar
Roger Martin
Member
Free Members
sp_UserOfflineSmall Offline
Feb 19, 2015 - 5:41 pm

I'm trying to wrap my head around what does/does not get updated in a child theme. Let's say I create a child theme and then modify something in spHeadDesktop.php (in the child theme directory). My understanding is that my customization is preserved if I upgrade to a newer version of the theme.

But if the update includes changes to spHeadDesktop.php, those never make it to my customized version of the file, right? Is it up to me to manually merge them?

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Feb 19, 2015 - 5:57 pm

You are correct. However - it is pretty rare that we need to make a change to a template. Most changes that take place are to styling and the main thing about a child theme is, of course, that you only need to add any CSS rules that you actually want to override.

What can happen, of course, is that we may develop and offer a new plugin that you may want to add to your forum which may entail an entry in a template. 

With every update to SP we do publish a 'change' document in our Codex which details any changes, new features etc., This is specifically targeted at custom theme users to help them identify anything they may wish to change or add. But we do try very hard to minimise any such changes.

Two things I would say is that Reboot - being very new - may have the odd template change in the early days simply in response to issues that may arise while bedding in. The other is that because of the structure of Reboot if you did make a change, say, to spHeadDesktop.php then you would also need to localise spHeadMobile.php and, indeed, spHead.php in the root templates folder. This is different to previous themes where mobile and desktop was not split out but is, hopefully, the paradigm we will employ in all future themes.

And finally! Reboot is also our first theme where you can create an overlay in your chile theme and make use of that.

The main Codex article for child themes is being planned and written as I type so hopefully the proper and full set if instruction will be available soon.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Roger Martin
Member
Free Members
sp_UserOfflineSmall Offline
Feb 20, 2015 - 10:14 am

Thanks - that is helpful. When you say I need to localise spHeadMobile.php and spHead.php, do you mean I need to copy them to the child theme?

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Feb 20, 2015 - 11:47 am

Sorry yes... bad choice of words.

andy-signature.png
YELLOW
SWORDFISH
Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17361
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625