• Hello,

    I need to add custom jquery code to my theme. This code was given to me by the admin at the Slick Social Share Plugin page at DesignChemical.com.

    Can someone give me step by step instructions on how to add this to my theme? I am a novice and have never worked with jquery code before.

    Thanks
    Russ

    jQuery(document).ready(function($) {
    $(window).scroll(function(){
    if($(‘.dcssb-float’).length){
    buttonPosition($(‘.dcssb-float’));
    }
    });
    });
    function buttonPosition(obj){
    var top = $(document).scrollTop();
    var p = top > 303 ? {marginTop: ’20px’} : {marginTop: (303-top)+’px’} ;
    obj.css(p);
    }

  • The topic ‘Adding jquery to my Theme for Slick Social Share Buttons’ is closed to new replies.