Meta tags

From MyWebber Wiki

Jump to: navigation, search

Some themes Chameleon, Marvin (those without page.tpl.php) need the following hack to enable the meta tags to show up

/sites/all/themes/chameleon/chameleon.theme

Replace...

  $output .= drupal_get_html_head();
  $output .= " beforeti<title>". ($title ? strip_tags($title) ." | ". variable_get("site_name", "Drupal") : variable_get("site_name", "Drupal") ." | ". variable_get("site_slogan", "")) ."</title>\n";

with...

  $output .= "<title>". variable_get("site_name", "Drupal"). "</title>\n";
  $output .= "<meta name='keywords' content='". variable_get("site_slogan", ""). "'/>\n";
  $output .= "<meta name='description' content='". variable_get("site_mission", ""). "'/>\n";