Jump to content
Sign in to follow this  
nielspeenanusoncom

Google +1 button

Recommended Posts

nielspeenanusoncom    0
nielspeenanusoncom

+1 for your reply ;-) Thanks Simon!

Share this post


Link to post
Share on other sites
[Deleted User]    0
[Deleted User]

Thanks - but how to just add it to the header? Thanks again.

Share this post


Link to post
Share on other sites
[Deleted User]    0
[Deleted User]

Thanks Simon :)

Share this post


Link to post
Share on other sites
alainafrederick    1
alainafrederick

I tried adding this code and I do not see the Goggle+1 button anywhere. Do I copy/paste all of the code into just Platform Base - functions.php?


trying to figure out all the capabilities of pagelines

Share this post


Link to post
Share on other sites
Simon    247
Simon

Yes add it to platformbase/functions.php, making sure platformbase theme is active.

Share this post


Link to post
Share on other sites
Kate    3
Kate

Hey Alaina, Yes, you would copy/paste it to your PlatformBase's functions.php file. Is your PlatformBase theme active? BTW: There is a plugin for this in the WP repository if you just want to add it after pages/posts ;)

Share this post


Link to post
Share on other sites
smbengine    0
smbengine

Simon, it works like a charm but how can i use your code but select the small or medium plus one box?

Share this post


Link to post
Share on other sites
Simon    247
Simon

Chris, I have no idea ;) Assuming that js file has some kind of args you can pass to it..find a site using the small button and look at the source of the page.

Share this post


Link to post
Share on other sites
Simon    247
Simon

Change to ``

Share this post


Link to post
Share on other sites
loraxio    1
loraxio

Instant gratification! Good on ya, Simon... the

<g:plusone size="small">

doesn't seem to work, though. Loving this now, because my social sharing tools match now!

Share this post


Link to post
Share on other sites
loraxio    1
loraxio

A bump for this thread because I wanted to share a plug-in that floats a set of share icons in the left side of the browser that goes well with this solution posted above. It called: Twitter Facebook Social Share by Kunal Chichkar. I took out a line of code in the twitter-facebook-google-plusone-share/tf_display.php file in order to be able to apply my own style. But the default styling options are okay too.

Share this post


Link to post
Share on other sites
bonngean    0
bonngean

I'd love to add this to my page without a plugin. (I'd rather use the hook)... but alas, it doesn't work. I added your code:

	add_action( 'wp_head', create_function('','echo "";'));
	add_filter( 'pagelines_before_sharebar', create_function('', 'return "";'));
	[/code]

To my functions.php file in pagelinesbase and it doesn't work for me either. I've added plenty into functions.php before without problems. So, I'm not sure why this isn't working.

Share this post


Link to post
Share on other sites
cemyk    0
cemyk

I'm keen to hear about this too. This is my first attempt at a hook so appreciate an 'idiot-proof' explanation! My aim is to get the button to appear after each of my post's tags area. If I can get that working I'll remove the buddypress footer from the full post view, adding discreet buttons alongside the google+. www.mattrichardsillustration.com/blog

Share this post


Link to post
Share on other sites
o_st    0
o_st

The code integration in functions-php for the share section works well enough. But you should be able to link to your google-profile in the header in the same way as you can link to your facebook or twitter profile.

Share this post


Link to post
Share on other sites
cas45+    0
cas45

@pross Could we use "pagelines_before_branding_icons" to get this in the header? Any chance we can add this to the social media integration in Pagelines? I am more than willing to update the platform pro graphics and sprites. This looks like it is growing fast and I think more and more people are going to want to add it. Your help as always is appreciated.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×