Where is the site's HTML source before the closing </BODY>HTML tag:?

7 replies
  • WEB DESIGN
  • |
Hi,
I need to paste a given script code into my website's HTML source right before the closing </BODY> HTML tag:. Where do I go to do that exactly? Do I do it through Filezilla or in my WordPress back office? Once in there, where do I go to look for that place so I can paste that script code? Thanks in advance.
#< or body>html #closing #html #site #source #tag
  • Profile picture of the author Istvan Horvath
    Steps:
    1. Download the footer.php file of your theme from public_html/wp-content/themes/your-theme-folder/
    2. Save it somewhere as a backup in case you screw it up...
    3. Edit it on your computer with Notepad
    4. Upload it back to the server
    Signature

    {{ DiscussionBoard.errors[3234113].message }}
    • Profile picture of the author strikers041
      Thanks Istvan. Can I just find the footer.php file in the editor in WP back office and edit it there? so "before the closing </BODY> HTML tag:" means it is in the footer.php file, right?I really appreciate your help.
      {{ DiscussionBoard.errors[3234248].message }}
      • Profile picture of the author pjCheviot
        Banned
        Originally Posted by strikers041 View Post

        Thanks Istvan. Can I just find the footer.php file in the editor in WP back office and edit it there? so "before the closing </BODY> HTML tag:" means it is in the footer.php file, right?I really appreciate your help.
        Yes, Striker - you can

        But take note of Istvan's point #2 - you never know
        {{ DiscussionBoard.errors[3234419].message }}
      • Profile picture of the author Istvan Horvath
        Originally Posted by strikers041 View Post

        Thanks Istvan. Can I just find the footer.php file in the editor in WP back office and edit it there?
        Theoretically, you can.

        However, on almost every host in order to be able to do that you need to change permissions (chmod) on files to 666 (="world writable"). And in my experience 99% of the users NEVER change it back after editing... which means they leave their blog wide open ("writable") for any hacker kid.
        Signature

        {{ DiscussionBoard.errors[3234512].message }}
        • Profile picture of the author pjCheviot
          Banned
          Originally Posted by Istvan Horvath View Post

          Theoretically, you can.

          However, on almost every host in order to be able to do that you need to change permissions (chmod) on files to 666 (="world writable"). And in my experience 99% of the users NEVER change it back after editing... which means they leave their blog wide open ("writable") for any hacker kid.
          I haven't come across that before in a "normal" installation - the theme's files in wp-content are usually, by default 644, writeable by the owner only?
          {{ DiscussionBoard.errors[3234868].message }}
          • Profile picture of the author strikers041
            Thank you everyone. Your help is greatly appreciated.
            {{ DiscussionBoard.errors[3235994].message }}
  • Profile picture of the author gmsj
    It is more than good answer
    {{ DiscussionBoard.errors[3234531].message }}

Trending Topics