Title: Fixed sidebar widget while scrolling
Last modified: August 22, 2016

---

# Fixed sidebar widget while scrolling

 *  Resolved [GSPinto](https://wordpress.org/support/users/gspinto/)
 * (@gspinto)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/fixed-sidebar-widget-while-scrolling/)
 * Hi,
 * Is there a way I can get the sidebar widget (let’s say the call to action widget)
   fixed on screen while the user scrolls down the post?
 * I want a contact call to action button to be always present while the user reads
   through.
    It’s for a localhost website I’m developing.
 * Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [vladff](https://wordpress.org/support/users/vladff/)
 * (@vladff)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/fixed-sidebar-widget-while-scrolling/#post-5825279)
 * Hey,
 * You could do it, though I would probably need to see your website for some exact
   code.
    You can add this in a regular text widget: `<a href="http://yoururl.com/
   contact" class="welcome-button fixed-button">Button</a>` And this in a custom
   CSS plugin:
 *     ```
       .fixed-button {
            position: fixed;
            top: 50%;
            right: 30px;
            z-index: 9999;
       }
       ```
   
 * And adjust as needed.
 *  Thread Starter [GSPinto](https://wordpress.org/support/users/gspinto/)
 * (@gspinto)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/fixed-sidebar-widget-while-scrolling/#post-5825651)
 * Hi Vlad,
 * Sorry for the late reply.
    I managed to tweak things to get what I wanted, thanks
   to your input of course. thank you!
 *  Thread Starter [GSPinto](https://wordpress.org/support/users/gspinto/)
 * (@gspinto)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/fixed-sidebar-widget-while-scrolling/#post-5825652)
 * I don’t know if what I did was the most simple solution.
 * I basically copied the welcome-button styles to this new fixed-button,
    gave 
   it a fixed width (150px) and used your top, right and z-index attributes.
 *  [vladff](https://wordpress.org/support/users/vladff/)
 * (@vladff)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/fixed-sidebar-widget-while-scrolling/#post-5825655)
 * Well, that’s why I added the .welcome-button class in that link, so you don’t
   have to copy the styles 🙂
 *  Thread Starter [GSPinto](https://wordpress.org/support/users/gspinto/)
 * (@gspinto)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/fixed-sidebar-widget-while-scrolling/#post-5825657)
 * hehe… Newbie here.
    Just removed the redundancies and all works perfect.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Fixed sidebar widget while scrolling’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/moesia/1.54/screenshot.png)
 * Moesia
 * [Support Threads](https://wordpress.org/support/theme/moesia/)
 * [Active Topics](https://wordpress.org/support/theme/moesia/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/moesia/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/moesia/reviews/)

## Tags

 * [fixed](https://wordpress.org/support/topic-tag/fixed/)
 * [scroll](https://wordpress.org/support/topic-tag/scroll/)
 * [sidebar](https://wordpress.org/support/topic-tag/sidebar/)
 * [widget](https://wordpress.org/support/topic-tag/widget/)

 * 5 replies
 * 2 participants
 * Last reply from: [GSPinto](https://wordpress.org/support/users/gspinto/)
 * Last activity: [11 years, 2 months ago](https://wordpress.org/support/topic/fixed-sidebar-widget-while-scrolling/#post-5825657)
 * Status: resolved