Meta tags

mattie's picture
mattie
Thu, 06/27/2013 - 12:35
#1
Meta tags

How do I set meta tags, e.g., meta description, for the home page and taxonomy pages?

Morpheus's picture
Morpheus
Sun, 07/07/2013 - 04:26

Hi mattie,

The best advise I can give you is to use drupal's metatag module.

Take a look to : https://drupal.org/project/metatag

Its a complet extremely effective meta tagging solution.

Its not so sexy that wordpress's yoast module but its pretty much more effective and much more complete.

mattie's picture
mattie
Wed, 07/10/2013 - 12:36

That module doesn't seem to work for the front page for this theme ... unless you know something I don't.

Morpheus's picture
Morpheus
Thu, 07/11/2013 - 07:30

Its because md_thenews doesn't print the front page in a standard drupal way.

You need to edit page--front.tpl.php and add at the very begin :

<?php
render($page['content']['metatags']);
?>

After that you'll need to clear drupal's cache in order to get drupal to use the modified page--front.tpl.php

mattie's picture
mattie
Thu, 07/11/2013 - 10:17

I'm using meta tags quick, and have already gotten everything in place for the taxonomy pages. However, that home page is a problem. How are the meta tags for the home page *set*? I mean, if I can't set the description, etc., there's no real point to rendering the content. Thanks!

Morpheus's picture
Morpheus
Thu, 07/11/2013 - 13:57

I don't know how to do that with metatag quick.

But with metatag module I have absolutely no problem to set metatags on the front page after I did the modification to page--front.tpl.php

Take a look to www.acuraz.net you'll see the metatags printed in front page

mattie's picture
mattie
Tue, 07/16/2013 - 00:49

I've got the Meta Tags module installed, and I'll give the page--front.tpl.php suggestion a try. Thanks!

mattie's picture
mattie
Tue, 07/16/2013 - 00:56

Thank God, that worked ... and thanks very much for your help -- this was driving me berzerk!

mattie's picture
mattie
Fri, 07/12/2013 - 18:25

Neo, do you have any suggestions?

opelcorsa45's picture
opelcorsa45
Thu, 07/18/2013 - 11:28

Neo doesn't read our problems, He just takes our money !

zaool's picture
zaool
Thu, 03/19/2015 - 23:45

no it work good fter adding the new line kindly see

http://live-webdesign.com/

Log in or register to post comments
Have More Idea?

We are here to build your website!

No Universal solution fits all special business requirements. Our experienced team is ready with ideas and state-of-the-art technical solutions to consult the best solution within your budget.