Jump to content

Change Google Plus 1 Button To Square


npl

Recommended Posts

I jumped the gun.... I got the sprite done and I tried to put it into the code and it did not work.

What would you do?

 

New Sprite

 

http://borealtrek.com/wp-content/uploads/2011/11/g+.png

 

Normal g+ code

 

 

<!-- Place this tag where you want the +1 button to render -->

<g:plusone annotation="none" href="www.borealtrek.com"></g:plusone>

 

<!-- Place this render call where appropriate -->

<script type="text/javascript">

(function() {

var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;

po.src = 'http://borealtrek.com/wp-content/uploads/2011/11/g+.png';

var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);

})();

</script></td>

 

<td>

Link to comment
Share on other sites

EDIT: I just realized that this isn't going to work because the plus one button is rendered inside an inline frame.

 

However, I may have another solution.

 

First, change that plus one code to back like you had it before.

 

Then, add this CSS between the <head> tags:

 

<style type="text/css">
#___plusone_0 > iframe {
opacity: 0 !important;
}
#___plusone_0 {
background: url('http://borealtrek.com/wp-content/uploads/2011/11/g+.png');
}
</style>

Link to comment
Share on other sites

  • 2 weeks later...

EDIT: I just realized that this isn't going to work because the plus one button is rendered inside an inline frame.

 

However, I may have another solution.

 

First, change that plus one code to back like you had it before.

 

Then, add this CSS between the <head> tags:

 

<style type="text/css">
#___plusone_0 > iframe {
opacity: 0 !important;
}
#___plusone_0 {
background: url('http://borealtrek.com/wp-content/uploads/2011/11/g+.png');
}
</style>

 

Well, if you'd do that then it won't change like it did at first, and you won't know that you've +'ed the page, and people will think it's broken.

Link to comment
Share on other sites

The +1 button that shows up in search results? Not sure you can change that. Not like a Favicon. Sorry wish I were more help. Will research more.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...