By carlbowles100 on
We have a drupal site up and running which an old colleauge made and I am currently updating the site and enhancing search engine optimisation but im new to using Drupal. Can I add a description meta tag to the pages on my site and if so how?
please explain to a complete newbie. thanks
Comments
I would suggest looking at
I would suggest looking at the MetaTags module.
Edit html.tpl.php
Head tag information is loaded via html.tpl.php
You should find this file in theme/THEMENAME/templates
Open it and you will see familiar info. You can edit it to include meta tags.
If your theme doesn't have this file (the Skeleton theme, for example, does not), you can find it at modules/system/html.tpl.php. Copy this file to your theme/THEMENAME/templates directory and edit as desired; it will override the version in the modules folder.
If this not a good practice, I hope that someone will let me know. There are a lot of search results regarding how to edit the in Drupal 7. Almost all of the suggestions involve a module or editing the template.php file. I can't see why - editing a copy of html.tpl.php that is in your theme folder works, is easy, and does not involve hacking the core.
Add custom meta tags
In my case drupal 7 with omega sub-theme.
I have included the custom meta tags for a specific node type.
File - preprocess.node.inc
For SEO purposes
Its better to use https://drupal.org/project/metatag module for this not only the description you can add Abstract/Author/Canonical URL/Keywords
which are most helpful for seo.
Add Meta tags Module
Add Meta tags via module check this link
http://www.letmecrazy.com/add-meta-tag-module-drupal-content/
Add Custom(programmtically) Meta tags via module check this link
http://www.letmecrazy.com/add-meta-tags-programmtically-to-custom-page/