You need to copy the header.php file into your child theme and modify only that file. Do not touch anything in the parent theme.
Esmi, forgive all these posts, but pls correct me if I’m wrong, but I think I need to copy the header.php file of my parent into the functions.php window provided in my child’s theme section. Then do any edits there in the child theme. Will report back. Vivek
No. If you wish to modify the header.php file, then you need to copy it into the child theme and edit the child theme’s copy.
Well did that and I seem to have blown everything. I cannot use the editor any longer, or even change themes. I’m getting this error everywhere:
Parse error: syntax error, unexpected ‘<‘ in /home/content/17/6628817/html/blog/wp-content/themes/twentytwelve-child/functions.php on line 5
Delete the child theme and upload a fresh copy using FTP.
Cant even logout of WordPress..copying the header.php file of the twenty twelve theme into the function.php field of the child did something bad.
really weird, cannot even log back into WP at the URL where I normally do this ( http://blog.rblock.com/wp-login.php )
all i did was select the parent, CTRL-C the header.php file, then select the child, and CRTL-V the content into the function.php file and hit save, and WP doesnt seem to give me any of the screens I’m used to seeing – i just get the Parse error screen above.
i may have to get a new install through godaddy, my host…
my blog at http://blog.rblock.com/ is gone too
Do not edit functions.php
You will need to go in thru FTP and delete the child-theme folder.
Then re-upload the original child-theme again once you gat back to the admin panel.
After that is done post back here
esmi, thanks heavens, i got it all back. I used my FTP client to move the functions.php file from the hosted twentytwelve-child folder to my local machine, and removed what I had copied into it. Then I saved it and copied it back to the hosted folder, over-writing the file I messed up.
OK, going to do more research before I try all that again. Clearly one must not move the entire header.php file of the parent theme into the fucntions.php file of the child theme – that’s what caused everything to crash
best,
vivek
COPY the header.php file from the parent folder to the child folder.
hi batharoy,
OK did that vis FTP, thanks.
Now I presumably have to edit the header.php file with the child theme activated. Based on what I wrote above, about moving the header links to the top of the webpage and fixing them so they don’t scroll, could you recommend the edits I should try?
many thanks indeed, to you and to esmi, for your mindshare
vivek
Correct, activate child-theme, go to Appearance > Editor
You should see header.php & style.css in the list (more if you added any others).
In the header.php look for the nav div starts with <nav id="site-navigation"
ends with <!-- #site-navigation -->
Cut & paste that section right below <div id="page" class="hfeed site">
After that we will style & position it correctly with css.