Skip to main content
Tweeted twitter.com/#!/StackDrupal/status/357277344207089664
Adjusted on question title and removed unnecessary greetings.
Source Link

need How to add Javascript code tointo a block in drupal page

I have a Drupal 7 site. I'd like to add Social Media follow buttons (i.e. Follow us on Facebook, Twitter, Linkedin). I grabbed some Javascript code from http://www.addthis.com which generates these buttons and also links to some analytics services I will be using. Now I need to figure out how to place the AddThis Javascript code I generated, to a Drupal block. Once it's in a block, it will be easy for me to move around my Drupal site pages. Thanks

need to add Javascript code to a block in drupal page

I have a Drupal 7 site. I'd like to add Social Media follow buttons (i.e. Follow us on Facebook, Twitter, Linkedin). I grabbed some Javascript code from http://www.addthis.com which generates these buttons and also links to some analytics services I will be using. Now I need to figure out how to place the AddThis Javascript code I generated, to a Drupal block. Once it's in a block, it will be easy for me to move around my Drupal site pages. Thanks

How to add Javascript code into a block

I have a Drupal 7 site. I'd like to add Social Media follow buttons (i.e. Follow us on Facebook, Twitter, Linkedin). I grabbed some Javascript code from http://www.addthis.com which generates these buttons and also links to some analytics services I will be using. Now I need to figure out how to place the AddThis Javascript code I generated, to a Drupal block. Once it's in a block, it will be easy for me to move around my Drupal site pages.

Source Link
user2398188
  • 119
  • 1
  • 1
  • 4

need to add Javascript code to a block in drupal page

I have a Drupal 7 site. I'd like to add Social Media follow buttons (i.e. Follow us on Facebook, Twitter, Linkedin). I grabbed some Javascript code from http://www.addthis.com which generates these buttons and also links to some analytics services I will be using. Now I need to figure out how to place the AddThis Javascript code I generated, to a Drupal block. Once it's in a block, it will be easy for me to move around my Drupal site pages. Thanks