Skip Navigation

[Resolved] Update for child theme

This support ticket is created 6 years, 4 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

This topic contains 3 replies, has 2 voices.

Last updated by Luo Yang 6 years, 4 months ago.

Assigned support staff: Luo Yang.

Author
Posts
#399991

I just noticed that there is an update available for the Toolset Starter CHILD theme.
Isn't this kind of against the point of the whole "use child themes for modification" thing? If I update the child theme, I'll lose all the additional codes I put into it, won't I?

#400109

Luo Yang
Supporter

Languages: English (English ) Chinese (Simplified) (简体中文 )

Timezone: Asia/Hong_Kong (GMT+08:00)

Dear gabor,

The Toolset Starter Child theme is only a demo theme for your reference.
Where do you put your custom codes in?
If it is in the theme/functions.php, I suggest you try this:
1) Backup your original functions.php
2) Update the Toolset Starter theme and Toolset Starter Child theme both, copy your custom codes from backup to the new files.

#400277

Providing us with a child theme without instructions = we'll use that because it makes sense. Then you come and tell us that it was just a demo and we shouldn't use it, that makes no sense.

What is there to update on a child theme anyway? Those are empty files.

#400712

Luo Yang
Supporter

Languages: English (English ) Chinese (Simplified) (简体中文 )

Timezone: Asia/Hong_Kong (GMT+08:00)

Here is the change logs of Toolset Starter Child theme version 1.1:
https://toolset.com/version/toolset-starter-child-1-1/

It changed only one line in functions.php:
Change in functions.php
line:
if ( class_exists( 'WPDD_Layouts' ) && !function_exists( 'include_ddl_layouts' ) ) {
changed to:
if ( defined('WPDDL_VERSION') && !function_exists( 'include_ddl_layouts' ) ) {