Support » Plugin: Floating Social Media Links » javascript links

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Nick Halsey


    Sure, just put javascript:void(0) into the link url field, then listen for a click on the link with jQuery.

    To listen for a click, you need to know which item number the desired link is in the frame (n, starting from 1 and including like/follow/subscribe buttons). This code will do it:

    jQuery('#fsml_ffmain > a.fsml_fflink:nth-child(n) > img.fsml_fficon').click(function(){
    	// do popup code here

    Just make sure you replace n with the appropriate index. You might also look at the code that runs when you click the facebook like button, that similarly pulls up a sort of popup, within the plugin.

    Thank you so much for your fast response Nick. Can’t get it to work mind you…

    I’ve just started using WordPress, although i’ve done plenty of javascript in the past. Trying to work out how the fb like works and where to stick the jQuery code you posted, not having much luck so far.

    I’ll keep plugin (sorry) away til I get it tho.

    Plugin Author Nick Halsey



    Or, for quick use, the Custom Javascript Editor plugin works well for miscellaneous JS snippets.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘javascript links’ is closed to new replies.