My web freelancer has gone on holiday and he has not put the meta and decription in my website. I have FTP access but cannot find the header.php file. Does anyone know the code I can use and how I can manually add the meta and desc tags to my php pages? Thanks so much in advance.
How do I add meta and description in my php website?
http://www.w3schools.com/php/
http://websitetips.com/php/
Reply:You'll have to download the header.php file, add it there, then re-upload it.
These tags need to go in between the %26lt;head%26gt; %26lt;/head%26gt; tags
If you have to do it in php, then it would be like this:
echo "
%26lt;meta name=\"keywords\" content=\"seperate, your, keywords, with, commas.\"%26gt; \n
%26lt;meta name=\"description\" content=\"Add a description of your website here.\"%26gt;";
Reply:if you don't have access to the file that creates all of the tags between %26lt;head%26gt; and %26lt;/head%26gt; then you can't add meta tags. If you have access to that file, all you need to do is add %26lt;meta ...%26gt; inside the head tags. If your developer is having the functions that create the head tags just return a string you will need to use - ${string name}.= "%26lt;meta name=\"... %26gt; (replace the {string name} with the name of the string being returned and on both of these fill in the meta tags as needed).
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment