Support » Plugin: Floating Social Media Links » [Plugin: Floating Social Media Links] Custom Dynamic Width

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


    Hi, I thought about adding an option for this, but other things like margins were also set by the built-in sizes.

    For now you can change the inner and margin widths by editing the values in lines 1117 - 1122 of floating-social-media-links.php (for version 1.4.1). These will sum to the total width that the frame takes up (the widths displayed in the settings).

    $framewidth = width of the frame itself
    $fhmargin = frame’s horizontal margin (from edge of page)
    $bmargin = the amount of space between each icon/action button, not relevant to width, but set along with the other size data

    You’ll see that they’re already set to decimals because the total widths come to the displayed whole numbers (including margin on the site side and window side), so you can use decimals on them and just adjust to your needed total values.

    I think I figured out a good way to make it easier for people to do this without editing the code, now that I’ve cleaned up the css structure, so I’ll add that to the next minor update (expected in a couple weeks).

    Plugin Author Nick Halsey


    I have added this feature into the development version (, so you can download that if you’d like rather than doing it in the source code. I haven’t yet fully tested this version though. You could also just change it in the source and wait for the polished update to be pushed in a couple weeks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Floating Social Media Links] Custom Dynamic Width’ is closed to new replies.