Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Has anyone else had issues this adding the Google +1 button to their site?
The template allowed me to add the required code into the head tag but not the
Hi Emma,
Welcome to the forum!
Umbraco doesn't change any code you put directly into a template, so this shouldn't be a problem.
Can you confirm you're putting this into a template directly and not via a Rich Text Editor or a macro?
Rich
Thanks :)I'm putting it in our footer.xslt file next to our social bookmark code.
Try putting it in your xslt like this:
<g:plusone></g:plusone>
No that hasn't worked, it just displays "<g:plusone></g:plusone>" in actual text rather than displaying the +1 button
Hey Emma,
This is a bit long winded but it'll work
<xsl:variable name="google"><xsl:text><g:plusone></g:plusone></xsl:text></xsl:variable><xsl:value-of select="$google" disable-output-escaping="yes"/>
You should be able to get away with defining the namespace:
<g:plusone xmlns:g="urn:g"> Something here</g:plusone>
That has worked. Thanks very much for your help :D
A much nicer solution Sebastiaan :)
@Emma The variable won't be needed so the simple solution is just to paste this into your xslt file
<g:plusone xmlns:g="urn:g">g:plusone>
edit: cross post, glad you got it working
FYI <g:plusonexmlns:g="urn:g">g:plusone> didn't work, had to use the long winded version. However desired effect achieved.
Ah well, there IS a "<" character missing in there, so that could be the reason, even shorter could work as well:
<g:plusone xmlns:g="urn:g"/>
If not, then surely this should work?
<g:plusone xmlns:g="urn:g"></g:plusone>
Ahh, my bad it's because I edited my post and the code got messed up.
Sebastiaans solution is the neatest by far and works a treat, but either way you have it working :)
This worked for me:
<xsl:text disable-output-escaping="yes"><![CDATA[<g:plusone size="medium"></g:plusone>]]></xsl:text>
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Google +1 button
Has anyone else had issues this adding the Google +1 button to their site?
The template allowed me to add the required code into the head tag but not the
Hi Emma,
Welcome to the forum!
Umbraco doesn't change any code you put directly into a template, so this shouldn't be a problem.
Can you confirm you're putting this into a template directly and not via a Rich Text Editor or a macro?
Rich
Thanks :)
I'm putting it in our footer.xslt file next to our social bookmark code.
Try putting it in your xslt like this:
Rich
No that hasn't worked, it just displays "<g:plusone></g:plusone>" in actual text rather than displaying the +1 button
Hey Emma,
This is a bit long winded but it'll work
<xsl:variable name="google"><xsl:text><g:plusone></g:plusone></xsl:text></xsl:variable>
<xsl:value-of select="$google" disable-output-escaping="yes"/>
Rich
You should be able to get away with defining the namespace:
That has worked. Thanks very much for your help :D
A much nicer solution Sebastiaan :)
@Emma The variable won't be needed so the simple solution is just to paste this into your xslt file
<g:plusone xmlns:g="urn:g">g:plusone>
Rich
edit: cross post, glad you got it working
FYI <g:plusonexmlns:g="urn:g">g:plusone> didn't work, had to use the long winded version. However desired effect achieved.
Ah well, there IS a "<" character missing in there, so that could be the reason, even shorter could work as well:
If not, then surely this should work?
Ahh, my bad it's because I edited my post and the code got messed up.
Sebastiaans solution is the neatest by far and works a treat, but either way you have it working :)
Rich
This worked for me:
<xsl:text disable-output-escaping="yes"><![CDATA[<g:plusone size="medium"></g:plusone>]]></xsl:text>
is working on a reply...