Tumblr Widget
[resolved] Change link text display (3 posts)

  1. mjg
    Posted 3 years ago #

    Thanks for the excellent plugin. Is it possible to change the text displayed for the post link?

    Currently it gives a date in the wrong date format for my blog.

    I would just like to display "See this post on Tumblr" or something like that. Can I edit the plugin file to achieve this?


  2. gabrielroth
    Plugin Author

    Posted 3 years ago #

    Sure. Check out line 51:
    echo '<p><a href="'.$post_url.'" class="tumblr_link">'.date('m/d/y', intval($time)).'</a></p>';

    You could replace it with:
    echo '<p><a href="'.$post_url.'" class="tumblr_link">See this post on Tumblr</a></p>';

    Hope that's helpful. Note that if you modify the code yourself, every time you update the plugin you'll overwrite the modification.

  3. mjg
    Posted 3 years ago #

    Very helpful, that's perfect, thanks.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Tumblr Widget
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic