Hello,

First, I'm using Framework since a long time now and it's a really good starter theme! Thank you!

My issue: I installed the Metatag module, and I created some custom template like page--front.tpl.php.

This issue is Framework doesn't print out any of the Metatag Module value, neither the title, description or the keywords.

Is there a way to edit the html.tpl.php to add these value? Or the template.php? Thanks for helping.

Comments

Anonymous’s picture

Hello,

Quick update: I tried to add the following code in template.php, with no success at all:

/**
* Print out Custom Meta tags & Description
*/
function framework_metatag($variables) {
$element = &$variables['element'];
element_set_attributes($element, array('name', '#value' => 'content'));
unset($element['#value']);
return theme('html_tag', $variables);
}

So far I haven't found any solution to print out Meta Tags, Meta description and Title from the Metatag module.

However modules "Pagetitles" + "(quick) Meta tags" are working fine with the theme.

Anonymous’s picture

Status: Active » Closed (fixed)

Update #2: The issue comes from Metatag module.

If you have custom .tpl files, you MUST call the "render($page['content'])" function in the .tpl file, otherwise metatags won't be called.

Complete solution in this thread:

http://drupal.org/node/1293214#comment-5878744

Topic closed.