• Hi, I’m very new to this. I’ve made a child theme to edit a few things. I’ve been told I need to change something in the header.php but the child theme only has style.css and rtl.css. How do I make a header.php in the child theme?

Viewing 6 replies - 1 through 6 (of 6 total)
  • create a notepad with name header.php( give extension .php). but run to this file you would need web server (like Apache) installed on machine. in fact for using WordPress this the requirement. you also need php. so my suggestion is that you install xampp server which comes with php and MySQL.

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.remarpro.com Admin

    Copy the header.php file from the parent theme into the child theme and then edit that.

    Thread Starter handle

    (@handle)

    Ken, I don’t really understand any of what you said. What is Apache and how would I get it?

    Samuel, I knew that part, but where do I paste it? Into the style.css?

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.remarpro.com Admin

    Don’t worry about what Ken said, I believe he was confused by your original question.

    But, paste what, exactly? I’m sorry, but I don’t understand your question.

    You have a child theme. It lives in a folder. You copy the header.php file from the parent folder, and make a header.php file in the child theme’s folder. Then you edit that.

    Thread Starter handle

    (@handle)

    I mean paste the code that will be changed. So the theme is also on my computer not just on the web? I think my main question is that the parent theme has so many different .css’s and the child only has two. If I need to change something in one of the ones that’s not there in the child, how do I get i there?

    So from you’re saying, I find the folder on my computer and paste the header.php from the parent to the child, and it will then show up in the edit part of wordpress?

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.remarpro.com Admin

    No. You need to look at the files on your website, via some means other than WordPress. The files for your theme are on your website, in the wp-content/themes/ folders.

    If I need to change something in one of the ones that’s not there in the child, how do I get i there?

    You make a copy of the file. Just like you make a copy of a file on your own computer, only you’re doing it on your website. You will need to access the files on your website.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How do you add a .php?’ is closed to new replies.