Adding title tags to PHP site?

6 replies
Yo,

OK. I'm working a site that is not, and never will be Wordpress for a guy. It's hosted on (when I put the name of the hosting company here, it was replaced with "NO NO NO NO NO" but the company starts with GO and ends with DADDY. (not going to change that either, it's a very short-term engagement).


So anyway, this guy wants to brand himself so on this site, I just want to be able to add some <title>TITLE</title> tags and some things like that...I'm not looking to go SEO crazy on the site.

The problem is that I have zero concept of PHP other than knowing if I screw it up, I don't know how to fix it. WITH THAT SAID I also know enough not to put random code just anywhere


With all of that nonsense out of the way, does anybody know how I can do this?

Here's how I get to the files. I am logging into NO-NO-NO-NO-NO-NO-NO-.com, and using the FTP manager to see the files, named main.php and so on.


I can edit the text files pretty easily it looks like, so that's where I'm guessing I need to add the tags.


Can anyone help me, or do you need more info?


thanks
#adding #php #site #tags #title
  • Profile picture of the author topnichewebsites
    If its not wordpress .. just html or php/html

    after your <head> tag

    add this .....

    <title>YOUR TITLE HERE</title>
    <metaname="description"content="YOUR DESCRIPTION">
    <metaname="keywords"content="YOUR KEYWORDS">


    before this .....
    </head>

    Normally if its a modular site then look for a file called head.php or header.php Hard to tell without looking at it, but its pretty simple.

    Hit me up on Skype if you are still confused or require more help

    Skype: topnichewebsites

    Signature
    http://pixelcovers.com/ <- eBook add eCovers

    https://www.unicommercesolutions.com <- WordPress Websites and Maintenance
    {{ DiscussionBoard.errors[7158306].message }}
    • Profile picture of the author wally247
      Originally Posted by topnichewebsites View Post

      If its not wordpress .. just html or php/html

      after your <head> tag

      add this .....

      <title>YOUR TITLE HERE</title>
      <metaname="description"content="YOUR DESCRIPTION">
      <metaname="keywords"content="YOUR KEYWORDS">


      before this .....
      </head>

      Normally if its a modular site then look for a file called head.php or header.php Hard to tell without looking at it, but its pretty simple.

      Hit me up on Skype if you are still confused or require more help

      Skype: topnichewebsites

      THANK YOU SO MUCH!

      I may hit you up, thanks a bunch for the offer! I'll try to get it myself first though.
      Signature
      {{ DiscussionBoard.errors[7158315].message }}
  • Profile picture of the author boilingstocks
    You could have easily found that if you would have search this on google " How to Add title to a website"

    Anyways Wally247 Answered your question very nicely ! *Claps*
    {{ DiscussionBoard.errors[7159576].message }}
    • Profile picture of the author wally247
      Originally Posted by boilingstocks View Post

      You could have easily found that if you would have search this on google " How to Add title to a website"

      Anyways Wally247 Answered your question very nicely ! *Claps*
      Yea, actually not. Unlike 99.9% of people here, I search for things before I ask.


      I even searched site:warriorforum and only found 1 thread, which was half-assed.


      The <tags>TAGS</tags> are not the problem, they are not hard. What IS hard if you don't know PHP is WHERE to put them.


      If you've ever screwed up some PHP by having one tiny piece of wrong/missing code you know that a whole website can be totally screwed in a click.
      Signature
      {{ DiscussionBoard.errors[7159622].message }}
      • Profile picture of the author phpindia
        Originally Posted by wally247 View Post

        Yea, actually not. Unlike 99.9% of people here, I search for things before I ask.


        I even searched site:warriorforum and only found 1 thread, which was half-assed.


        The <tags>TAGS</tags> are not the problem, they are not hard. What IS hard if you don't know PHP is WHERE to put them.


        If you've ever screwed up some PHP by having one tiny piece of wrong/missing code you know that a whole website can be totally screwed in a click.
        Yes, there is no problem with tag. You have to put title tag in <head>
        section of your home page or any other page. Title tags are always put inside head tag. like..

        <head>
        <title>PHP web development</title>
        </head>
        After this tag your main <body> tag will start.

        I think this will surely help you...
        {{ DiscussionBoard.errors[7160137].message }}
        • Profile picture of the author Moneymaker2012
          Originally Posted by phpindia View Post

          Yes, there is no problem with tag. You have to put title tag in <head>
          section of your home page or any other page. Title tags are always put inside head tag. like..

          <head>
          <title>PHP web development</title>
          </head>
          After this tag your main <body> tag will start.

          I think this will surely help you...
          Yes, you are right i did the same things before try this dear....
          {{ DiscussionBoard.errors[7169161].message }}

Trending Topics