WordPress.org

Ready to get started?Download WordPress

Forums

adding php to a child theme (6 posts)

  1. minimematernity
    Member
    Posted 1 year ago #

    How do I add the header php to my 2011 child theme?

    http://www.minimematernity.com

  2. Andrew Nevins
    Spam zapper & Volunteer Moderator
    Posted 1 year ago #

    Copy header.php from the 2011 theme and just paste it into your Child Theme directory.

  3. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    Generally, if you are wanting to make changes to the header.php file, make a copy of the existing header.php file, put the copy in the child theme and make changes there (or you can make the changes on your local computer using a text editor and then upload the revised file to your child theme.

  4. minimematernity
    Member
    Posted 1 year ago #

    I get the copy paste part, but where do I paste? Directly into the 2011child stylesheet? I am having trouble figuring out how to save it into the new theme?

  5. minimematernity
    Member
    Posted 1 year ago #

    nevermind. i had no idea what I was doing and was trying to do it from the dashboard. just went into my ftp manager and figured it out. thanks!

  6. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    make a copy of the existing header.php file

    A totally NEW file using a text editor. Only CSS goes in a stylesheet.

    http://codex.wordpress.org/Child_Themes#Template_files

Topic Closed

This topic has been closed to new replies.

About this Topic