Google+ Share Textual Link

Problem: Google Plus share Button looks ugly on my design so i decided to put textual link but the problem google dose not provide any api for the same but you can achieve the same with below code i found from some source i updated it as per my requirement and done 🙂

Note: if your url has more then one query, then google dose not identifies the page for that you can use short url goo.gl


	<a 
	href="https://plus.google.com/share?url=example.com?test=1" 
	target="_blank"
	onclick="window.open(this.href,
	'gplusshare',
	'menubar=no,
	toolbar=no,
	resizable=yes,
	scrollbars=yes,
	width=450,
	height=300,
	left='+(screen.availWidth/2-225)+',
	top='+(screen.availHeight/2-150)+'');
	return false;" >
		Share JS
	</a> 

Example:

Share

I hope this will help you too…

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: