0

I have a problem. There is AFTER SINGULAR in widgets line. Then I chose widget: text or HTML code.

I have a pictures of 3 social media icons (facebook, twitter, pinterest)

I want that icons (facebook, twitter, pinterest) link will be to :

Example:

https://www.facebook.com/sharer/sharer.php?u=

https://twitter.com/intent/tweet?original_referer=

I want that there would be automatic write post title and post URL. So, what should I write in the end of the link? (facebook, twitter, pinterest)

Please, help. :-)

1
  • You are asking about the Facebook, Twitter, and Pinterest APIs. This does not have anything to do with WordPress.
    – s_ha_dum
    Commented Jun 18, 2013 at 12:50

1 Answer 1

0

Text widget is only static text widget.

You need to place link to current post on the end of the sharing link (and you have to urlencode it), so I don't think that text widget will help you with your problem.

The easiest solution to your problem will be adding these sharing links in your themes .php file (if you want to place them in sidebar, then sidebar.php would be appropriate file - but it may depend on your theme structure).

3
  • I want add icons after posts.
    – user33502
    Commented Jun 18, 2013 at 13:08
  • After each one of them on list view, or after single post in single post view? So add these links in correct place (it's hard to say where, because it depends strongly on your theme structure). Of course you always can use plugin that is adding these links for you (there are many such plugins). Commented Jun 18, 2013 at 13:09
  • I know where to add. But what should I write in the end of links? I want to do: then the link is open were will be write: post title and post URL. So, how I should change the end of link?
    – user33502
    Commented Jun 18, 2013 at 13:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.