[Support request] share buttons without a plugin

Home Forums Support [Support request] share buttons without a plugin

Home Forums Support share buttons without a plugin

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #288831
    Matt

    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

    #288833
    Leo
    Staff
    Customer Support

    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.

    #288848
    Matt

    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?

    #288851
    Leo
    Staff
    Customer Support

    Depends where you are adding them. If you add them in hooks then they will be on every page.

    #288859
    Matt

    Cool could you give me an example to work with please.

    #288862
    Leo
    Staff
    Customer 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.

    #288867
    Matt

    Ok so how Can i add the link to that as well
    http://www.facebook.com/sharer/sharer

    #288868
    Matt

    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?

    #288908
    Tom
    Lead Developer
    Lead 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.html

    #288920
    Matt

    Thanks Tom
    I’ll give it a try

    #288930
    Tom
    Lead Developer
    Lead Developer

    No problem 🙂

    #777975
    Kuan

    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?

    #778071
    David
    Staff
    Customer Support

    Hi there,

    this is an old post, would you mind starting a new one.

Viewing 13 posts - 1 through 13 (of 13 total)
  • You must be logged in to reply to this topic.