• Resolved SickSquirrel

    (@sicksquirrel)


    I created my first child theme. I copied the 11 or 12 lines from Codex to create style.css. I changed their theme name to mine.

    I then crated functions.php by pasting three or four lines from Codex.

    Uploaded all to ThemeName-child. Under Appearance )) Themes. Refreshed my Themes page but only my theme is there, no child. I can’t activate it.

    Now, my style.css only has the header. I assume I have to copy/paste in the file but I don’t see it outside the child directory. Now if that is right (after y’all help me find the file) do I paste in functions.php below my newly-created functions file?
    so, how do I pull it out of hiding???
    If

Viewing 4 replies - 16 through 19 (of 19 total)
  • Thread Starter SickSquirrel

    (@sicksquirrel)

    A child theme will include all files of the parent theme

    Hmm? I only have two files as that is all it said I needed.

    How to Create a Child Theme
    Child Theme directory structure
    A child theme consists of at least one directory (the child theme directory) and two files (style.css and functions.php), which you will need to create:
    
    The child theme directory
    style.css
    functions.php.

    Before I change all in style.css plus directory titles to zeenews, I need to be sure I have the tight files

    If so, I’ll reinstall the theme and create the child

    Moderator James Huff

    (@macmanx)

    Ok, and as mentioned, you don’t need the functions.php file if you aren’t actually adding PHP functions to your theme.

    Thread Starter SickSquirrel

    (@sicksquirrel)

    Oh good. Error logs are full of error on line1 of functions.php. Last night I realized I’d forgotten why I needed the child theme. I’m going to assume it was adding links across the header. For now I’ll work on adding content, then worry about links and widgets.

    This hasn’t been a waste as I learned about child themes. When I last built sites, they weren’t labeled as child themes. We just put altered files in a new directory in case of upgrade

    Moderator James Huff

    (@macmanx)

    Learning is always good. ??

Viewing 4 replies - 16 through 19 (of 19 total)
  • The topic ‘My Child Is Hiding’ is closed to new replies.