anydigital / drupal-tweme

Ultra lightweight Bootstrap theme for Drupal.
https://www.drupal.org/project/tweme
62 stars 9 forks source link

Update docs and readme #27

Open tonystar opened 9 years ago

kortenkamp commented 9 years ago

It would be nice to see how the demo site of Tweme was created. What is necessary to add the twitter/facebook/…/social whatever buttons? Some kind of "first steps" would be great.

tonystar commented 9 years ago

Sure @kortenkamp, I will describe. What about social buttons — it's super easy:

  1. Create account at AddThis.
  2. Go to AddThis > Tools > Sharing Buttons > Setup and configure the buttons.
  3. Go to Drupal admin > Structure > Blocks and create new block.
  4. Copy the code of AddThis widget to the block body and place the block in the Share region.
  5. Done!

Here is an example code from my website:

<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-555c8db17e3c1983" async="async"></script>
​<script type="text/javascript">
var addthis_config = addthis_config||{};
addthis_config.data_track_addressbar = false;
addthis_config.data_track_clickback = false;
</script>
<div class="addthis_sharing_toolbox"></div>
kortenkamp commented 9 years ago

thank you!