Return to Support

Child Theme questions – please help

Home Forums Graphene WordPress theme Support Child Theme questions – please help

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #9476
    scottl31
    Member

    Our designer used Graphene and did tons of edits before we found out the wisdom of using a child theme.

    My questions are:

    Can we transfer all edits to the child and reset the parent without losing all settings, and header etc. made in the options panel?

    Does the options panel work the same when using child?

    Any other advice on this greatly appreciated.

    Thanks,

    Scott

    #43297
    Quote:
    Can we transfer all edits to the child

    For an easy way to do this, see the post I wrote here:

    WordPress Child Themes: The Whys and Hows

    Quote:
    reset the parent without losing all settings, and header etc. made in the options panel?

    From any page in Graphene options, export the theme settings while still running Graphene. Then switch to your child theme and import those settings.

    #43298
    scottl31
    Member

    Great!

    One other thing.

    I changed the includes/theme-shortcodes.php file, but I can’t get it to read properly in the child. It’s still the only thing left in the parent that is changed.

    Any idea how to move this file to the child? I tried the includes folder with just the file, and the file by itself but still didn’t work.

    Thanks!

    #43299

    If all you want to do is add some shortcodes to your site, you don’t need to edit theme files. You can create a child theme functions.php file and add them there.

    #43300
    scottl31
    Member

    I had a php programmer do some work and this is where he put his shortcodes code.

    Are you saying I should be able to do a fileDiff type thing to find his code and I could put it in functions.php?

    #43301

    It’s not quite that simple, but depending on your skill level with PHP and your willingness to try things out, yes, it can be that simple.

    See this (now ancient) thread for starters:

    https://forum.graphene-theme.com/feature-requests/customizable-message-blocks

    #43302

    To be honest, a lot depends on how he wrote his code in the first place, but it should be fairly standard.

    #43303
    scottl31
    Member

    Well it worked except that there is a template file it refers to like this:

    $template_file = get_template_directory().’/includes/gridtemplate.html’;

    but this assumes the location is in the graphene directory. I put a new full url there with the file in that new place but it doesn’t find it. So I at least still need to leave this html file in the graphene parent theme.

    Any ideas?

    Thanks!

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.