To use the fb project I had to a new attribute to the HTML tag of my sasson 3.x sub-theme.

I tried to add a new function my template.php file, e.g.

<mytheme>_preprocess_html(&$vars) {
  $vars['html_attributes'] .=  '  xmlns:fb="http://www.facebook.com/2008/fbml"';
}

But it didn't work, maybe because this is overridden by sasson_preprocess_html() in sasson/includes/preprocess.inc, which defines the variable again.

Any idea how to do it right? (for the meanwhile the only thing which worked was str_replace on html.tpl.php).

Amnon

Comments

tsi’s picture

Status: Active » Fixed

Actually, $vars['html_attributes'] is not being printed anywhere. it is only used to construct $vars['html'] which is the one being printed into html.tpl.php and that is the one that must be overridden.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.