The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to add html code to my php files?

Discussion in 'General Discussion' started by Alon Eini, Nov 14, 2014.

  1. Alon Eini

    Alon Eini Registered

    Joined:
    Nov 14, 2014
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Haifa, Israel, Israel
    cPanel Access Level:
    Website Owner
    Hi,

    I'm new here and I can't figure something.
    I want to register my website to Google tags. They asking me to add an html code under every <body> tag on every page of my site.

    Now, How can I add html code if it's all php files (so there is no <body> tags) ???
    When i'm looking at the page source it look a beautiful html page, but then again, can't find anything like it on my files.
    I have lots of folders
    Hope my question is clear..

    Thank you,

    Alon
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,478
    Likes Received:
    203
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    This isn't necessarily a question related to cPanel. If you're running a CMS like Wordpress for example, (all PHP files) you wouldn't edit wordpress files, you might want to add the code to the theme. Or use a plugin, for example:
    /https://wordpress.org/plugins/wp-google-tag-manager/

    For more help with this sort of thing, you might visit the appropriate forums and ask for more details there. Like here for example:
    /https://wordpress.org/support/

    HTH!
     
  3. mtubuzz

    mtubuzz Registered

    Joined:
    Nov 17, 2014
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    You can use alternate method to upload the required file into the Public http in file manager. It will work.
     
Loading...

Share This Page