How to edit header.php on a child theme


How to edit header.php on a child theme
i tried going in to the parent theme and adding my code into there to make a change, however it threw me an error saying it was unable to communicate back with the site.
Im simply trying to make it so that the images placed within the header media are in a slider, but everything i've tried doesn't seem to work.
Any help is greatly appreciated
1 Answer
1
In general, once you created a child theme and activated it, you can copy the header.php
from the main theme directory to the child theme directory and do any modifications you need in that copied file - it will overwrite the main theme's file with the same name, which also applies to any other theme file (like footer.php
, functions.php
etc.)
header.php
footer.php
functions.php
How do i copy the file from the parent into the child?
– Adam Steele
2 days ago
You don't know how to copy a file?
– Johannes
2 days ago
all i'm doing is helping someone with their site, so im simply logged in as admin, i cant seem to be able to add a PHP file into the child theme
– Adam Steele
2 days ago
You know how to use FTP?
– Johannes
2 days ago
If not, how did you create the child theme?
– Johannes
2 days ago
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
you need to be a lot more precise describing your problem, and also add the part of your code that contains the problematic situation...
– Johannes
2 days ago