Do header.php and footer.php get overwritten when we upgrade WordPress? (5 posts)

  1. eridout
    Posted 5 years ago #

    We coded emergency escape buttons on our website some time ago, and recently found they had disappeared. I just put them back in, inserting `<form style="text-align:left;"><input type="button" value="EMERGENCY ESCAPE" onClick="location.replace('http://www.google.com')"/></form>
    ` into both header.php and footer.php.
    Now I wonder whether upgrading WordPress some weeks ago would have caused header.php and footer.php to be overwritten?

  2. Rev. Voodoo
    Posted 5 years ago #

    do you use the twentyten theme?

    If so read this: http://go.rvoodoo.com/WPchild
    it's an explanation, and child theme tutorial

    never edit twentyten basically, use a child theme

  3. cubecolour
    Posted 5 years ago #

    The theme would have been overwritten with a new copy if you used the default twentyten theme and did not rename it or create a child theme.

  4. eridout
    Posted 5 years ago #

    Thanks, both!

  5. eridout
    Posted 5 years ago #

    Thanks again for the advice, and Rev Voodoo for your WPchild tutorial.
    Have created the child with its own style.css, header.php, and footer.php,
    and re-done a Twentyten download and reinstall. Looks like my emergency escape buttons are there on top and bottom of all pages, and everything else functioning correctly. Thank you!

Topic Closed

This topic has been closed to new replies.

About this Topic