- This topic has 12 replies, 5 voices, and was last updated 3 years, 4 months ago by David.
March 8, 2017 at 6:48 am #288831Matt
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?
MattMarch 8, 2017 at 6:53 am #288833LeoStaffCustomer Support
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:
Let me know if this helps.March 8, 2017 at 7:22 am #288848Matt
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?March 8, 2017 at 7:23 am #288851LeoStaffCustomer SupportMarch 8, 2017 at 7:26 am #288859Matt
Cool could you give me an example to work with please.March 8, 2017 at 7:29 am #288862LeoStaffCustomer Support
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.March 8, 2017 at 7:38 am #288867Matt
Ok so how Can i add the link to that as well
http://www.facebook.com/sharer/sharerMarch 8, 2017 at 7:47 am #288868Matt
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?March 8, 2017 at 8:57 am #288908TomLead DeveloperLead Developer
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.htmlMarch 8, 2017 at 9:18 am #288920Matt
I’ll give it a tryMarch 8, 2017 at 9:39 am #288930TomLead DeveloperLead DeveloperJanuary 10, 2019 at 1:26 am #777975Kuan
Could you please advise how do we use
Tom’s Lightweight Social Icons
to create a shareable icon below all single post page?January 10, 2019 at 3:36 am #778071
- You must be logged in to reply to this topic.