I've got taxonomy pages that are emulated by real views. The vocabulary terms have an additional field "field_meta_description", where meta-description tags can be added. On the view page of each term, this field should be used to populate the content of the html tag <meta name="description"/>. How can this be accomplished? I know there are some modules out there like metatag, but I am looking for a custom way to do it by lightweight self-coding.

1 Answer 1


Assuming Drupal 7:

You can go for implementing hook_page_alter() in your theme's template.php and use drupal_add_html_head() to insert your own metatags. Following the link you will find lots of exmples in the comments.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.