By donok on
Hello
I am trying to add a ShareThis button set to a block, but I think D7's text editor doesn't like the code and strips it out when I save the block. Funny thing is, if I paste it in with "disable rich text" and save, the code and the buttons work fine, until I configure block, and then it's all stripped out.
I know I am supposed to put my js links in my .info page, but the "#pubid" at the end of the link below seems to screw that up...
Any ideas?
<!-- AddThis Button BEGIN -->
<div style="float:right;" class="addthis_toolbox addthis_default_style ">
<a class="addthis_button_facebook_like" fb:like:layout="button_count"></a>
<a class="addthis_button_tweet"></a>
<a class="addthis_counter addthis_pill_style"></a>
</div>
<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=xa-4dd43d522876c319"></script>
<!-- AddThis Button END -->
thanks,
Don
Comments
This may be a possible solution
Hello, I do not know what input format you are using. Create PHP input type and select it before saving your content. This should resolve it. Hope this helps.
Use php input filter
Enable "php code" module and in "input format" settings of the block, set it to "php code", then paste your code and press save
Regards,
Sundar
Thanks!
Yes, that did it -