• Deborah Delin

    (@deborahdelingmailcom)


    Hi
    I’m trying to create a child theme for Twenty Fourteen.

    All is fine until I add the modified header.php and footer.php files. When I do so I get a big space between the menu bar and the start of the page plus the Dashboard menu is displayed on the right. As in this screenshot:

    http://postimg.org/image/64kgomzq3/

    I had understood that to add header and footer modifications to a child theme you just have to copy the parent files and put them in the child theme folder, but evidently this is not working.

    Please could you advise as to how to create header and footer php files with just the modifications in them?

    Thank you

    Deborah

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Deborah Delin

    (@deborahdelingmailcom)

    On further investigation – the copy of the footer.php in the child theme is fine. It’s just the copy of header.php which messes up the theme. All I am wanting to do is add google analytics to the header so I could just upgrade and add it to the new header. But I would very much like to know the proper way of adding a modified header.php file to a child theme.

    Just make a copy of the parent theme file (header.php or footer.php)- put the entire copy of it in the child theme folder – and make the modifications in the child theme version. It will override the parent theme version. If you have formatting problems, it’s likely that your changes were not done correctly or that you need to also modify the CSS code.

    In this case, no way to offer much specific assistance without seeing your site and/or the file in question.

    Thread Starter Deborah Delin

    (@deborahdelingmailcom)

    Thank you for your reply.

    That is what I did….. Except that the modification already existed in the parent header.php and I made an exact copy of the modified header.php and put it in the child folder. Could the duplication of the modification be the problem?

    This is the site:

    http://www.photomobil.co.il/

    Currently using the child theme but the parent header.

    When the site is not likely to be busy I’ll try again with a clean file in the parent folder.

    Thank you.
    Deborah

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Header and Footer in Child Theme’ is closed to new replies.