WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Simple share to Facebook and Twitter using text only (4 posts)

  1. deidrawilson
    Member
    Posted 1 year ago #

    I have tried to search for this but the results are always packed with plugins that are more complicated than what I need.

    Under each blog post, I want simple text that says Share to FB or Post to Twitter. I am not opposed to having these be custom icons/buttons.

    What is the simplest plugin or a simple script to allow this type of sharing? I found Sociable Pro, but I don't believe it's still available.

    Thank you in advance!

  2. James Kirk
    Member
    Posted 1 year ago #

    Heya deidrawilson,

    Have you looked at Digg Digg?

    On first glance it might still appear to be one of those overly complicated plugins, and it is :(

    However, it is also highly customizable. If you click into the Manual Placement admin menu option, you will see the code required to insert only the social media links you want and either in regular or compact modes.

    Not sure how willing you are to get into your template pages and add script code, but this one for a Text Only Facebook Share Link looks really good (I may add it to some of my sites!)

    And here's some code for creating a text link for retweeting.

    Hope that helps!

    Cheers! :)

  3. deidrawilson
    Member
    Posted 1 year ago #

    Thank you James!

    For those that want to know, I ended up using this info and just changed a few things as needed to suit my needs!

    Twitter:

    <a href="http://twitter.com/share?text=<?php echo urlencode(the_title()); ?>&url=<?php echo urlencode(the_permalink()); ?>&via=twitter&related=<?php echo urlencode("coderplus:Wordpress Tips, jQuery and more"); ?>" title="Share on Twitter" rel="nofollow" target="_blank">Tweet This</a>

    In the code you can edit via=twitter with your twitter handle.Ex.If your twitter username is martin then you can change it to via=martin you can also edit the related account by editing related=coderplus: WordPress Tips, jQuery and more

    For Facebook:
    <a target="_blank" href="http://www.facebook.com/sharer.php?u=<?php the_permalink();?>&t=<?php the_title(); ?>">Share this on Facebook</a>

    Good luck to all!

  4. James Kirk
    Member
    Posted 1 year ago #

    Right On, deidrawilson!

    You did some groovy stuff there. Any chance we can see where you integrated it into your WordPress site? Would love to see the functionality you've groomed here in action!

    Cheers! :)

Topic Closed

This topic has been closed to new replies.

About this Topic