Super Simple Floating Button

December 4, 2018 (2 years ago)

Forget complicated plugins with tons of options you don’t need.
Easily create a floating button on your site with this simple CSS:

    position:fixed !important;

Then just add this anywhere on your page or template:

<div class="button float">
     <a href="#">Click Me</a>

In this example, I used the class ‘button’ because the styling for that is already in my theme. You can remove that class and add the styles in the CSS above if you like.

This is my collection of WordPress, CSS, JS and PHP code

July 1, 2014 (6 years ago)

This is a personal collection of snippets I use on client sites. Some are original, some highly modified or cobbled together from other sources, and some copied (only from open sources such as this.)

I generally prefer not to use plugins for simple features and functions, especially if my clients don’t need options, which is quite often the case.

Free support for these snippets is probably not an option for your unique applications, due to my work load, but it never hurts to ask.

Copy, share and code on!

Skip to toolbar