Can't find the footer.html file of a website-Please Help

5 replies
  • WEB DESIGN
  • |
Hey guys,

I'm doing a favor for a family doctor. He wanted something removed from the site. The image and link is in the footer. When I'm in the cpanel of the site, I can not find the footer at all.

There is no footer.html file

when I go to the css file, that is 0 help.

Is there any "advanced" way to find the freaking file that has the footer information?

(I could go through every .html page and manually remove it from every page, but there are a lot of freaking pages and that would be a real pain in the butt, would rather just do it in one place the footer and be done with it.)

I should mention, it's not a wordpress, it's a static html site.

Please help me, I really appreciate it.

Jason
#file #find #footerhtml #websiteplease
  • Profile picture of the author RobinInTexas
    Give us a link to the site or PM me.
    Signature

    Robin



    ...Even if you're on the right track, you'll get run over if you just set there.
    {{ DiscussionBoard.errors[8291791].message }}
  • Profile picture of the author RobinInTexas
    In the alternative you could download all the html files and go a global search & replace for the code/data you want removed and upload them to the server overwriting the old ones.
    Signature

    Robin



    ...Even if you're on the right track, you'll get run over if you just set there.
    {{ DiscussionBoard.errors[8291804].message }}
  • Profile picture of the author Brandon Tanner
    Why are you assuming that all of the pages are pulling their footer content from a single file? The footer code may have been hard-coded into each page individually (which of course is very bad from a "maintenance" standpoint, but it's not that uncommon).

    If you have access to the home page's source code (ie the code in the index.php or index.html file), post it here, and it should be easy to see where the footer content is coming from. And don't forget to use "CODE" tags around the source code, so your post isn't a mile long.
    Signature

    {{ DiscussionBoard.errors[8291820].message }}
    • Profile picture of the author Jason_V
      Originally Posted by Brandon Tanner View Post

      Why are you assuming that all of the pages are pulling their footer content from a single file? The footer code may have been hard-coded into each page individually (which of course is very bad from a "maintenance" standpoint, but it's not that uncommon).

      If you have access to the home page's source code (ie the code in the index.php or index.html file), post it here, and it should be easy to see where the footer content is coming from. And don't forget to use "CODE" tags around the source code, so your post isn't a mile long.
      Yeah, she may have actually physically put it on every page

      This is the code right before what's on the footer:

      <div id="footer"> <div class="wrapper">

      I searched through all the files, there is no "footer" anywhere.

      "In the alternative you could download all the html files and go a global search & replace for the code/data you want removed and upload them to the server overwriting the old ones."

      Thanks Robin, it looks like I'm going to have to probably do that.
      Signature
      "When you do something exactly wrong, you always turn up something."
      -Andy Warhol
      {{ DiscussionBoard.errors[8291891].message }}
      • Profile picture of the author Brandon Tanner
        Yeah, the footer code was probably hard-coded into each page separately. The best thing to do at this point would be to create a single PHP file named "footer.php", and put all of your footer code in it.

        Then simply "include" that file in each of the individual pages where you want the footer code to appear.

        PHP Tutorial - Include File

        That way, whenever you need to edit the footer code in the future, you only have to edit one file, and all of the pages will be updated automatically.

        And you can do the same thing with any other sections that are the same on all pages (header, nav menu, etc).
        Signature

        {{ DiscussionBoard.errors[8292021].message }}

Trending Topics