I have inherited the job of editing my agency’s webpage. I didn’t create the site, and I am not sure whether the IMW custom theme that is active is a child type theme for 2011, or whether all customizations up to this point have been made to the original theme. Do need to create a child theme for this site, how to do that considering all the customizations that have already been applied.

What do I need to provide to support for answers

I read some of the answer posts but still am unsure. So If I do not see “Child” in the CSS, then it is not a child theme? I was thinking that maybe the IMW Custom theme was a child theme itself based on the 2011 theme, just without the word child being used to designate it as such. IF IT IS NOT A CHILD THEME, then all of the customizations up to this point have been done to the theme itself. How would I go about creating a child theme from this point? I am so confused.

3 s
3

  • Read the stylesheet. A child stylesheet must have Template:
    somethemename
    to function as a child theme.
  • Look in Appearance -> Themes. A child theme should have a notice
    about requiring a parent theme.
  • Use code similar to this (note: debugging only):

    add_action(
      'wp_head',
      function () {
        if (get_template_directory() === get_stylesheet_directory()) {
          echo 'not a child';
        } else {
          echo 'child';
        }
      }
    );
    

Reference:

http://codex.wordpress.org/Child_Themes

Leave a Reply

Your email address will not be published. Required fields are marked *