Closed (fixed)
Project:
AT Commerce
Version:
7.x-3.0-rc1
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
13 Feb 2013 at 15:55 UTC
Updated:
27 Feb 2013 at 22:30 UTC
I need to add xmlns:og="http://opengraphprotocol.org/schema/" to all pages as per OpenGraph Metatags at http://drupal.org/project/opengraph_meta
There's a post about adding this nonsense (I hate Facebook) for IE, but I don't see where it would need to go in the html.tpl.php file (or even if that's where it would go) for all browsers. I've copied the .tpl file to the subtheme folder, so all I need to know is where to paste the darn thing - sorry for being so dense... thank you for your help and for this awesome theme system!
Comments
Comment #1
Jeff Burnz commentedAt provides a variable you can add to for sticking new attributes in the html element, so in preprocess do this:
Comment #2
bcobin commentedThanks so much, Jeff.
So template.php would look like the below, right? (This is a live site, so I want to be careful here.)
etc.
Comment #3
Jeff Burnz commentedThere is a small error (but big problems if you leave this), you included the curly brace, which is not needed only the line of code, in your example remove the curly brace that you included directly after the line of code:
Comment #4
bcobin commentedThanks, Jeff - made the change!
One more question, though (and I really appreciate your timely and excellent help with all this):
The attribute seems to be declared only for IE - which might be correct, as far as I know. Below is the beginning of the page source, which is the only place the declaration appears. Is that right?
Thanks again here...
etc. The declaration appears nowhere else. Again - this could be right - just checking... and sorry to be a pain. Thanks much!
Comment #5
Jeff Burnz commentedIt appears for all, its how the conditional comments trick works.
Comment #6
bcobin commentedThanks, Jeff - you're my hero. Issue closed!