ThemeShaper Forums » Power Blog

[closed]

child theme of TPB. Grandchild?

(5 posts)
  • Started 4 years ago by xxxevilgrinxxx
  • Latest reply from em hr
  1. I've just purchased TPB but, like child themes, I don't want to mess up the theme when I upgrade (look how you've spoiled me! *grin*)

    Has anyone made a child (grandchild?) of TPB to keep TPB theme pristine? If so, can you give me a link or a brief run down before I start tinkering?

    thanks in advance!

    *edit*
    boy, I'm dumb! Just copy the files over and rename it and poof, instant child theme. I'd still be interested in knowing about grandchild themes though, in case my belated brainstorm isn't as clever as originally thought :)

    Posted 4 years ago #
  2. Hi,

    sorry there's no real solution for a Grand Child Theme. We could implement a variant CSS like in Acamas. And we could include an additional functions.php, but this additional file will only work if you want to extend the child theme's functions.php. It won't work, if you want to change or remove functionality in the child theme's functions.php.

    Chris

    Posted 4 years ago #
  3. thanks, Chris. I think when it gets into grandchildren, it's probably getting more complicated than I'd like. I need to do some more tinkering in firebug to see what I can noodle around with before it goes live :)

    Posted 4 years ago #
  4. Idea:
    Simulate a grandchild theme using an include() of the grandchild theme's functions.php file and @import of the styles.css

    I am far from being a php hacker, but am more interested in what might be the best way to go about a process like that.

    Posted 4 years ago #
  5. I wouldn't recommend include. I use either include_once or require_once inside a child theme's functions.php to link to a separate functions file.

    The benefit to storing functions in a separate file for me is purely organizational. By doing so I can compartmentalize only the new functions that I am adding to the child theme. This allows me to update the child theme without having to comb through the functions.php to back up my added functions.

    Like Chris mentioned, this doesn't account for removing or overriding the child theme's functions. If the original child theme were coded with filter hooks and action hooks within it, then this additional functions file could be more versatile in this capacity. But as far as I know no one has yet to create a child theme that is design to be filtered in this way.

    -Gene

    Posted 4 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.