Archived topic
share buttons without a plugin
12 replies · Started by Matt on March 8, 2017
Hi
I found a solution for not using a plugin for share buttons but it says to insert code in themes function php. Is it possible to add this in gp hooks and if so where?
https://www.gavick.com/blog/wordpress-social-media-share-buttons-without-plugin
Thanks
Matt
Hi Matt,
I think it would be easier to use GP's built in font-awesome icons: http://fontawesome.io/icons/.
Or I assumed you checked out Tom's Lightweight Social Icons but you don't want to use the plugin? https://en-ca.wordpress.org/plugins/lightweight-social-icons/
If you still prefer to use the code on that page, you can add it this way:
https://docs.generatepress.com/article/adding-php/
Let me know if this helps.
Thanks Leo
Trying not to use anymore plugins. Using the font-awesome icons would still require some sort of code to make it appear on every page would it not?
Depends where you are adding them. If you add them in hooks then they will be on every page.
Cool could you give me an example to work with please.
Not sure what you meant? If you add this to Dashboard > Appearance > Before Header then you will see it on every page: <i class="fa fa-facebook-square"></i>
Let me know if this answers your question.
Ok so how Can i add the link to that as well
http://www.facebook.com/sharer/sharer
Basically I am trying to add a share button to the bottom of each page without using a plugin . Is this possible to do in gphooks?
It's possible, but it would require you to custom code the buttons and the links.
10up recently published a component library which shows you how to add sharing links: https://10up.github.io/wp-component-library/component/social-links/index.html
Thanks Tom
I'll give it a try
No problem :)
Hello Leo
Could you please advise how do we use
this plugin
Tom’s Lightweight Social Icons
to create a shareable icon below all single post page?
Hi there,
this is an old post, would you mind starting a new one.