A customizable Reddit Embed widget that is powered by redditJS.com to create widgets to embed on your website.
The post widget will embed itself onto your Wordpress post and detect if it has been posted to reddit.
If it has NOT been posted to reddit it will show a link to encourage the user to submit.
If it has been posted, it will load a widget displaying that reddit post giving the user where they can upvote/comment that post.
wp-redditjs will give you a chat box similar to facebook or disqus comment system. This is excellent for websites that have their content submitted to reddit. It will help increase reddit activity with more upvotes and comments and allow the user to freely navigate reddit.
If you are not using the Wordpress plugin, you can add this script tag on any website.
<script src='//redditjs.com/post.js' </script>
Name | Description | values | Default |
---|---|---|---|
data-url | The URL you want to search in reddit to embed on your site. | any url | current URL |
data-width | Width of the post widget. | number | 500 |
data-height | Height of the post widget. | number | 500 |
data-post-finder | If the URL has been submitted multiple times to reddit, it will display the most relevant post based on your setting. | newest, mostUpvoted, mostComments | mostComments |
data-theme | Change the theme | light, dark | light |
data-show-submit | If we don't find a post on reddit, should we display a "submit to reddit" widget. | true,false | true |
<script src='//redditjs.com/post.js' data-url='http://www.techodrom.com/etc/star-trek-edges-closer-reality-tractor-beam-moves-object-using-nothing-power-ultrasound/' data-height='500' data-width='500' data-post-finder='newest' data-theme='dark' data-show-submit='true' </script>