WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Child Theme Question (4 posts)

  1. R L Honeycutt
    Member
    Posted 1 year ago #

    In twentyeleven-child, all I have is style.css. From another forum, to eliminate the search box in the menu bar, I have to delete code in header.php. It worked, but also eliminated the search box in twentyeleven. How do I get a header.php for the child, so I don't disturb the parent. I'm new at this and would appreciate any help.

  2. Scott Fennell
    Member
    Posted 1 year ago #

    Just copy the original parent version of header.php into your child folder and edit to taste.

  3. MarkRH
    Member
    Posted 1 year ago #

    With child themes it first looks in the child's folder for the particular file (header.php, footer.php, single.php, etc) and if it doesn't find it, loads the parent's file. So, any piece of the parent you want to modify, copy it to the same relative place in the child's folder and modify that version.

  4. R L Honeycutt
    Member
    Posted 1 year ago #

    Thanks to you both for the prompt reply. Somehow I got the idea that style.css was the only thing in the child folder.

Topic Closed

This topic has been closed to new replies.

About this Topic