Add a Reddit share button
-
I really like this lightweight plugin and all the documentation for additional features is awesome.
I just noticed a tiny mistake on this document
https://sharedcountsplugin.com/2019/03/27/add-a-reddit-share-button/The line
$link['link'] = 'https//www.reddit.com/submit?url=' . $link['url'];
is missing the colon in https://It might also be useful to put the colour css in the doc
add_action( 'wp_head', function () { ?> <style> .shared-counts-button.reddit { background-color: #ff4401; } .shared-counts-button.reddit:hover { background-color: #cd3600; } </style> <?php } );
- The topic ‘Add a Reddit share button’ is closed to new replies.