Home › Forums › I Am One Support › Theme Options lost when creating a child theme
- This topic has 7 replies, 3 voices, and was last updated 9 years, 6 months ago by Jason Scopelleti.
-
AuthorPosts
-
April 1, 2015 at 8:40 pm #5271
When I already had the theme set up I created a child theme for some customizations but that means I lose all the configuration I already had, menus, front page, etc. Is there a way get the settings into the child theme? Thank you
April 1, 2015 at 9:29 pm #5272It’s already fixed.
April 2, 2015 at 6:19 am #5281Okay cool. Do share what was the problem or how you fixed it.
Regards,
ShriApril 2, 2015 at 7:31 am #5286Hi, it wasn’t a problem, per se, is the way things are saved into the database.
When I am one Pro is activated, two rows are created in the options table: optionsframework_iamonepro (all theme cstomizations like logo, favicon, I am one Pro sections) and theme_mods_iamonepro (menus already asigned, widgets etc).
All the settings for the theme go there.
When creating a child theme and activating it, wordpress creates two new row for the theme which are clean optionsframework_childthemename and theme_mods_childthemename.
What I did was to activate the child theme so that these two rows were created, then disabled the child theme again (wasn’t sure if I would modify them while it was active), copied the values from the rows for I am one pro and used them to do an update on my child theme option rows, then I reactivated the Child Theme and everything that had already been set up on the parent them was there on my child theme 🙂
Apparently there is another way, you can customize the name of those two variables in functions.php so that the child theme uses the same options name as the parent theme instead of creating new ones, that way if you switch between the parent and child theme all the options are retains because it is really using the same options. But I went the other way and it worked.
Hope this helps
April 2, 2015 at 11:47 am #5299Okay will remember this. Sorry for the all the hassle and thanks for writing such a detailed explanation.
Regards,
ShriMay 14, 2015 at 2:41 am #6777I just purchased the Pro version but had already created a site with a child theme of the free; now that I have the Pro is it possible to import everything I’ve done in that child theme in to the Pro?
Edit: Basically, I used the plugin Childify Me to create a child theme called Authentech 1.0, based upon SKT Black and have modified it extensively, but now I’ve purchased and installed SKT Black Pro and am wondering if I’m able to duplicate the child theme or otherwise get it to inherit templates from the Pro version rather than the Free version.
Any help would be greatly appreciated!
May 14, 2015 at 1:42 pm #6802Hi,
Unfortunately the Pro version uses shortcodes and saves its data separately in a different row of the same table as free. So unfortunately you have to again re-create child theme. You can do it faster as you know what modifications were done.
Regards,
ShriMay 14, 2015 at 2:02 pm #6807Ok thanks I figured as much. I’ll probably not bother and just use the template for other websites.
-
AuthorPosts
- You must be logged in to reply to this topic.