WordPress.org

Ready to get started?Download WordPress

Forums

Floating Social Media Links
[resolved] Custom Dynamic Width (3 posts)

  1. Dementei
    Member
    Posted 1 year ago #

    Hello again, got a way to set a custom width, preferably in decimals like 5.5%? :) Thanks.

    http://wordpress.org/extend/plugins/floating-social-media-links/

  2. Nick Halsey
    Member
    Plugin Author

    Posted 1 year ago #

    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).

  3. Nick Halsey
    Member
    Plugin Author

    Posted 1 year ago #

    I have added this feature into the development version (http://downloads.wordpress.org/plugin/floating-social-media-links.zip), 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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.