Skip to main content

Google +1 button code being stripped

10 months ago
OfflineUlrik Poulsen
Ulrik Poulsen

I am trying to put a Google +1 button on one of my pages inside an HTML widget, but every time I save the widget the code gets stripped by Igloo. Has anyone lese managed to successfully put a +1 button on their site?

This is the code I am trying to put in (the javascript to go with it is already pasted in in "advanced"):

<g:plusone></g:plusone>

Any help would be greatly appreciated.

Thanks,

Ulrik

-----
You liked this too0 people like this discussion.
 
Concluded

0 Conclusions:

5 Replies

OfflineIvan Chevelev Ivan Chevelev said 10 months ago

Unfortunately any non-standard HTML tag is stripped from the HTML widget. The only way to get around it is to use a standard HTML tag with a unique class like <span class="g-plusone"> and change the JS to search for that tag instead of the <g:plusone>.


OfflineUlrik Poulsen Ulrik Poulsen said 10 months ago

I don't see how this is a solution, really, as the JS file I am linking to is hosted with Google. I had the same problem when trying to install a Facboook Like button - even the iframe got stripped, which I would argue is very standard HTML.

I can't be right that these two buttons, that are becoming so prevalent everywhere on the web, cannot be used on your platform, can it?


OfflineIvan Chevelev Ivan Chevelev said 10 months ago

Yes, the hosted JS is a problem. Even if you were to download it (to upload later to your site), it would be compressed and unreadable - it wouldn't easy, but it's still possible.

But yeah, you're right - supporting these would be beneficial. We'll see what we can do.


OfflineUlrik Poulsen Ulrik Poulsen said 10 months ago

Thank you, Ivan. That would be greatly appreciated. It is possible to decompress JS, but changing their code is not really a good idea. Particularly as I would then have keep track of any changes to the code and update it every time there was one.


OnlineWilliam MacKay William MacKay said 5 months ago

I am interested in this also especially with the announcement of Google + Direct connect.  It seems that it would be very advantageous to be able to put a Google + button in our IGLOO communities to link them with our Google + business pages thereby improving our search results. I am not a programmer so I struggle somewhat when I have to tweak HTML or java script. Is there a possibility of simplifying the connection with our Google + pages in the advanced tab? 


Would you like to comment?

You must be a member. Sign In if you are already a member.

  • 161 views
  • $obj.VersionIndex versions
  • 5 replies
  • 4 followers
     
Labels:

HTML

Post Date:
July 18, 2011
Posted By:
Ulrik Poulsen

About this forum

  • 4,166 views
  • 49 topics
  • 3 followers
     

Looking for something you can't find? Have a suggestion on how we can improve service? We want to hear from you!


Viewed 161 times