Warrior Forum - The #1 Digital Marketing Forum & Marketplace

Warrior Forum - The #1 Digital Marketing Forum & Marketplace (https://www.warriorforum.com/)
-   Programming (https://www.warriorforum.com/programming/)
-   -   Adding title tags to PHP site? (https://www.warriorforum.com/programming/693014-adding-title-tags-php-site.html)

wally247 12th October 2012 04:14 PM

Adding title tags to PHP site?
 
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

topnichewebsites 12th October 2012 04:31 PM

Re: Adding title tags to PHP site?
 
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


wally247 12th October 2012 04:33 PM

Re: Adding title tags to PHP site?
 
Quote:

Originally Posted by topnichewebsites (Post 7158306)
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.

boilingstocks 12th October 2012 11:38 PM

Re: Adding title tags to PHP site?
 
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* :) :)

wally247 12th October 2012 11:53 PM

Re: Adding title tags to PHP site?
 
Quote:

Originally Posted by boilingstocks (Post 7159576)
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.

phpindia 13th October 2012 03:33 AM

Re: Adding title tags to PHP site?
 
Quote:

Originally Posted by wally247 (Post 7159622)
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...

Moneymaker2012 14th October 2012 11:37 PM

Re: Adding title tags to PHP site?
 
Quote:

Originally Posted by phpindia (Post 7160137)
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....


All times are GMT -6. The time now is 12:01 AM.