Forums

How to add XML namespace attribute? Please Help! (3 posts)

  1. JG99
    Member
    Posted 11 months ago #

    Hello - a plugin I am using has been updated and this note was added. I am not sure what I must do to my blog? Right now it is not showing up properly in Internet Explorer. Can someone please help?

    Note: The latest update uses the XFBML for Facebook buttons, In order to use XFBML on your webpage, you must add an XML namespace attribute to the root <html> element of your page. Without this declaration, XFBML tags will not render in Internet Explorer. Add xmlns:fb=”http://www.facebook.com/2008/fbml” as an <html> element. The <html> should look like this: <html xmlns=”http://www.w3.org/1999/xhtml” xmlns:fb=”http://www.facebook.com/2008/fbml”>

  2. z3r0c00l
    Member
    Posted 10 months ago #

    you may have found your answer already, but if not, you can use something like:

    <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?> xmlns:x2="http://www.w3.org/2002/06/xhtml2" xmlns:fb="http://www.facebook.com/2008/fbml">

    You would need to edit the header php file in order to do so. Look towards the top of the code and find the <html> attributes. I've included the <?php language_attributes(); ?> in my declaration as well.

    p

  3. JG99
    Member
    Posted 4 months ago #

    thanks very much

Reply

You must log in to post.

About this Topic