In order to post, you must be logged in and have a membership.

Home Forums Oxygen FAQ Social Share buttons

Tagged: 

Viewing 2 reply threads
  • Author
    Posts
    • #2229
    • #2284
      Jonathan
      Keymaster

      Hi there, here's an example of what you can do using Font Awesome.

      <div>
      Facebook: <a href="https://www.facebook.com/sharer/sharer.php?u=&t=" title="Share on Facebook" target="_blank" onclick="window.open('https://www.facebook.com/sharer/sharer.php?u=' + encodeURIComponent(document.URL) + '&t=' + encodeURIComponent(document.URL)); return false;"> <i class="fa fa-facebook-square"></i> </a>
      </div>

       

      <div>
      Pinterest: <a href="http://pinterest.com/pin/create/button/?url=&description=" target="_blank" title="Pin it" onclick="window.open('http://pinterest.com/pin/create/button/?url=' + encodeURIComponent(document.URL) + '&description=' + encodeURIComponent(document.title)); return false;"> <i class="fa fa-pinterest"></i> </a>
      </div>

      You need to change the Font Awesome icon name which you'll notice is the <i class="fa fa-pinterest"></i> code on those buttons. Their website is here for reference: https://fontawesome.com/icons?d=gallery&p=2

    • #2349
      Rita Bozokine Antal
      Participant

      Hi Jonathan,

      Thank you for your reply. I've been trying to figure it out but without too much success... None of the icons are visible on the front end and the email sending is totally wrong. On the backend the Facebook icon can be seen - as you gave the whole code for that. But with Linkedin I couldn't achieve the same even though inserting the Font Awesome html from the page you referenced...

      This is the page where you can see that, at the bottom: http://bentley.duotone.hu/krotaliak-sertes/ (it's a temporary, developmental site).

      What I would need is a sharing button to Facebook, LinkedIn and an option to send the link in email.

      Could you please help me: what did I do wrong?

      Thank you very much in advance.

      Kind regards,

      Rita

       

Viewing 2 reply threads
  • You must be logged in to reply to this topic.
menu
linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram