J!Extensions Store™
Forum
Welcome, Guest
Please Login to access forum.
Re:G+1 button without counter? (1 viewing) 
Go to bottom
TOPIC: Re:G+1 button without counter?
#4388
j lewis
Fresh Boarder
Posts: 3
User Offline
G+1 button without counter? 3 Years, 9 Months ago Karma: 0  
Great plugin, one question - is it possible to configure the Gplus1 button to display without the counter?

Found this in the php file:
Code:

if($params->get("plusButton", true)) { $plusButton = "<g:plusone $type href='$url'></g:plusone>"; }
If I add something like...
Code:

<g-plusone data-annotation="none">
....would that work? Not sure exactly how to do this, any help appreciated, thanks in advance
 
Logged Logged  
  The administrator has disabled public write access.
#4390
John Dagelmore
Admin
Posts: 3521
User Offline
Re:G+1 button without counter? 3 Years, 9 Months ago Karma: 74  
Thank you, that option for the annotation can be changed easily in the plugin settings... no need to edit the source PHP code.
 
Logged Logged  
  The administrator has disabled public write access.
#4395
j lewis
Fresh Boarder
Posts: 3
User Offline
Re:G+1 button without counter? 3 Years, 9 Months ago Karma: 0  
Thanks for response, but where in the plugin settings can this be done? In the Google Share Settings there is the option to select 'annotation style - none', but not in the Google Plus One Settings.

The other fastsocialshare buttons can be set to hide the counter from within the plugin settings, but the Plus One button style options all include the counter (unless I am missing something obvious?)
 
Logged Logged  
  The administrator has disabled public write access.
#4396
John Dagelmore
Admin
Posts: 3521
User Offline
Re:G+1 button without counter? 3 Years, 9 Months ago Karma: 74  
I will add this option to affect the plus one button too.

In the meanwhile you can change the plugin code as follow at line 227:

Code:

$plusButton = "<g:plusone annotation='none' $type href='$url'></g:plusone>";
 
Logged Logged  
 
Last Edit: 2016/03/03 20:35 By @store$eco#mm!.
  The administrator has disabled public write access.
#4397
j lewis
Fresh Boarder
Posts: 3
User Offline
Re:G+1 button without counter? 3 Years, 9 Months ago Karma: 0  
This worked perfectly - thank you so much!
 
Logged Logged  
  The administrator has disabled public write access.
Go to top