Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
8.7k views
in Q2A Core by

Does anybody know where I can add this 

xmlns:fb="http://www.facebook.com/2008/fbml"

to the <html> tag after the doctype declaration ? I cannot find the function!

Thanks, best regards

Q2A version: v 1.3

1 Answer

0 votes
by
selected by
 
Best answer

It's in the function html(), so override that in your theme:

function html()
{
  $this->output(
    '<HTML xmlns:fb="http://www.facebook.com/2008/fbml">',
    '<!-- Powered by Question2Answer - http://www.question2answer.org/ -->'
  );

  $this->head();
  $this->body();

  $this->output(
    '<!-- Powered by Question2Answer - http://www.question2answer.org/ -->',
    '</HTML>'
  );
}

EDIT: oh looks like you're using v1.3. In that case the code is not in the theme, it's somewhere like qa-base.php or qa-page.php.

by
Thank You, right it is in qa-page.php line 617, you saved my day !
by
What the ... was bad with my question to get it down voted ?
by
I don't know but I voted it back up again :)
by
Thanks, i was just a little bit surprised. But may be there is somebody who does not like facebook so much. Same for me, but especially the younger users are all on facebook, cant ignore it....
by
Probably just someone playing with the software here instead of using the demo like they should ;)
...