Beginner's Guide for WordPress - Start your WordPress Blog in minutes.
Choosing the Best
WordPress Hosting
How to Easily
Install WordPress
WordPress Plugins
View all Guides

How to Create a “Sticky” Floating Sidebar Widget in WordPress

Last updated on by
Special WordPress Hosting offer for WPBeginner Readers
How to Create a “Sticky” Floating Sidebar Widget in WordPress

Floating elements that sticks to your screen as you scroll tend to have a higher click through and conversion rate than static objects. This is why many websites make use of floating elements through out their website. We have seen elements like header bar, footer bar, sidebar widget with newsletter optin, etc. In the past we showed you how to create a sticky floating footer bar in WordPress like we are using on WPBeginner. In this article, we will show you how to create a sticky floating sidebar widget in WordPress, so you can make your email newsletter stand out even more.

Note: This works for all type of sidebar widgets, not just your email optins. You can use it for product promotions, popular posts, flickr photos, google calendar, and basically anything else that you like.

Sticky sidebar floating widget demo

Video Tutorial

If you don’t like the video or need more instructions, then continue reading.

First thing you need to do is install and activate the Q2W3 Fixed Widget (Sticky Widget) plugin. After activating the plugin, go to Appearance » Widgets and click on the widget that you want to make sticky. The plugin adds a Fixed Widget option in all of your widgets. Check the Fixed widget box and save changes. Go to your live site and scroll down. Your fixed widget will now be a sticky floating widget.

Making a widget sticky by checking the fixed widget checkbox

Sticky Widget plugin comes with options to configure the positioning of the fixed widgets. Go to Appearance » Fixed Widget Options to configure the plugin. On this page you can set the margins, add your own HTML IDs and even disable the fixed widgets on phone and tablets.

Configuration options for sticky floating sidebar widget plugin

Sticky floating sidebar widgets can be used to boost sign ups, showcase content, and increase overall user loyalty. You can have multiple fixed widgets in a sidebar. However, these could easily get annoying and can have an adverse affect too. Keep a balance in your design, so you don’t frustrate your users.

We hope that this article helped you implement a sticky floating sidebar widget in your WordPress website. You can put a sticky footer bar, a sticky top navigation, and a sidebar widget. Which one would you rather use on your website? Let us know in your comments below.

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi. Page maintained by Syed Balkhi.

WPBeginner's Video Icon
Our HD-Quality tutorial videos for WordPress Beginners will teach you how to use WordPress to create and manage your own website in about an hour. Get started now »


  1. Sam says:

    Is it compatible with Thesis ?

  2. Cesar says:

    thank you bro, the plugin works like charm, this article really helpful

  3. Anders says:

    Awesome! works like a charm. Thanks for sharing.

  4. Michael says:

    Can you make it scroll then at the bottom have it become part of the footer? For example on this page. When you get down to the widget section have it stop and be at the top of the widgets?

    Similar to how this site did there quote section. When you get to the bottom it becomes part of the footer.

  5. Florian says:

    Hey there,

    Unfortunately I can not get it to work.
    How do I do exactly what you did on your page?
    So I would like to have a banner on the bottom end of the Page with a Text in it.

    Also I would like it not to show up on the phone. What is the pixel-number for that?

    Thank you!

  6. Chrissy says:

    Thank you so much for the tutorial. I had been seeing this around the web and wondered how to accomplish the same effect. The margin bottom option worked GREAT because it was also getting into the footer! You guys are awesome!

  7. Umer Iftikhar says:

    I was in search of this Thanks wpbeginner for your help. But I have one confusion. Let’s say I want to fix the top widget. But when I did it and scrolled down, it just hided the other one which was not in the position as I wanted. Can you help me for this? Like let’s suppose when I completely scroll down the page, after all widgets, then it should start being fixed. Is that possible?


  8. Nathan says:

    Great, thanks. I just got my WordPress site off their domain and on to my own – so now I can even use all these great plugins. I’ll surely try this out sooner or later.

  9. Joel says:

    I need this to work with css and shortcodes. Planning on making a version to support this?

  10. orangorangan says:

    the plugin works only for text widget, not on my custom widgets, any idea why? thanks :)

  11. jen says:

    I tried to combine this with the ad inserter plug in and it did not work. It does not allow for the option to make ad widget sticky. Any suggestions on a fix or work around?

  12. Nazir Hack says:

    Thanx Bro

  13. Michal Chovanak says:

    This is a realy great post, thanks

  14. Drosanski says:

    For me not working -.- ;(

  15. Mohsin Ali says:

    Hi, thanks … this plugin is working.

  16. Robert says:

    Hi, love the plugin, but it breaks my slideshows in my woothemes. They won’t load anymore. Is there a solution for this maybe?

  17. Usama Siddiqui says:

    I have tried this plugin on my website. But its not working :( is there any alternative to this plugin?

  18. Prashant Ghai says:

    Thanks for sharing the info. about this plugin. Really made it a smooth sailing on my blog.

  19. Raja says:

    Worked like a charm.

  20. Grant says:

    Hi I have had this plugin for a while and it works great but whenever there is a page that is shorter than my sidebar, when you try to scroll down the sticky widget which I have gets all fidgety and doesn’t let you scroll down to the bottom. Does anyone know how to fix this?

    • Editorial Staff says:

      Do you have an example of that page? Can you send us an email about it Grant, so we can take a look.

  21. Ayush Agrawal says:

    Is it OK to make Adsense ads sticky? I mean if I place Adsense ad code in a widget and make it sticky will it violate the TOS?

    • Editorial Staff says:

      No that is not allowed by Adsense. The wording is tricky. They will allow it if the sidebar remains static and the content is the one that is scrolling. So if you have two scroll bars like The Next Web design has, then you can do it.

      • Daniel Lemes says:

        Hi, could you could point out where, in terms of AdSense is explicitly stated that this is illegal? I haven’t found a word about it. 9gag and many others still using this kind of floating block.

        • WPBeginner Support says:

          Like we said earlier the wording is tricky, and in some situations you may be able to pull it off. But for smaller publishers it is always better to be safe than sorry.

      • Pundie says:

        I don’t understand, you said: “They will allow it if the sidebar remains static and the content is the one that is scrolling”

        Isn’t that exactly what we are trying to do here? Display AdSense in a static sidebar widget, and have our page content scrolling. Therefore you just clarified this IS allowed.

        The whole double-sidebar thing you mentioned is just weird, and terrible web design.

  22. Rednasil says:

    Does anybody know how to get this working for the genesis framework??
    I’ve been trying with no luck.

  23. Howard Lee Harkness says:

    I tried this plugin on my MailChimp widget, and it doesn’t appear to do anything. It also automatically unchecks itself whenever I close the setup page.

  24. Grant Kessler says:

    Everything works beautifully until the footer of the page comes! How can I get it to stop being a fixed object when it hits the footer? There is always this terrible, sloppy, and messy, overlapping. Thank you for your time!

    • Editorial Staff says:

      In the plugin settings, you can add margin bottom. Just put the footer’s height there, and it should be fine.

  25. Ra-Dzik says:

    Nice tutorial. Thanks!

  26. Mukesh Mali says:

    I am already implemented in my site and using it for improving the subscribers to my channel.

  27. Darnell Jackson says:


    Thanks for sharing this man I’ve been looking for an easy way to implement this effect.

    I’ll have to test it right away if it works it’s going live on my blog this week thanks bro.

Add a Comment

We're glad you have chosen to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and all links are nofollow. Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.