Adding Social Sharing buttons to OSSN

Allon Prooit Posted in Beginning Developers 10 months ago

Needing to add this script somewhere in the site to make it work. The share buttons come from a site that says you should paste it into the head of all html files. I can't figure out which files I should put it into. Any suggestions? This share function was made by RhythmOne at

<script type="text/javascript">
// this code through the following //
// //
// Floodlight Pixel Manager //
// DCM Pixel Manager //
// Any system that places code in an iframe //
(function () {
var s = document.createElement('script');
s.type = 'text/javascript';
s.async = true;
s.src = ('https:' == document.location.protocol ? 'https://s' : 'http://i')
+ '';
var x = document.getElementsByTagName('script')[0];
x.parentNode.insertBefore(s, x);

German ~Z~ Man Replied 10 months ago

I can't figure out which files I should put it into

One more time: It's not recommended to alter any Ossn core file. See

Instead, use Homelancer's CUSTOM CSS/JS component

and enter/save your code there.