Title: Fixed Widget and Sticky Elements for WordPress
Author: monetizemore
Published: <strong>19 novembro, 2012</strong>
Last modified: 30 março, 2023

---

Pesquisar plugins

![](https://ps.w.org/q2w3-fixed-widget/assets/banner-772x250.png?rev=2384479)

Este plugin **não foi testado com os 3 lançamentos principais mais recentes do WordPress**.
Ele pode não ser mais mantido ou suportado e pode ter problemas de compatibilidade
quando usado com versões mais recentes do WordPress.

![](https://ps.w.org/q2w3-fixed-widget/assets/icon-256x256.png?rev=2384479)

# Fixed Widget and Sticky Elements for WordPress

 Por [monetizemore](https://profiles.wordpress.org/monetizemore/)

[Baixar](https://downloads.wordpress.org/plugin/q2w3-fixed-widget.6.2.3.zip)

 * [Detalhes](https://br.wordpress.org/plugins/q2w3-fixed-widget/#description)
 * [Avaliações](https://br.wordpress.org/plugins/q2w3-fixed-widget/#reviews)
 *  [Instalação](https://br.wordpress.org/plugins/q2w3-fixed-widget/#installation)
 * [Desenvolvimento](https://br.wordpress.org/plugins/q2w3-fixed-widget/#developers)

 [Suporte](https://wordpress.org/support/plugin/q2w3-fixed-widget/)

## Descrição

Use Fixed Widget to create sticky widgets, sticky blocks, and other elements that
stay in the visible screen area when a user scrolls the page up or down.

Sticky widgets are more visible than unfixed widgets and therefore have a significantly
higher click-through rate.

That’s why this option is worthwhile for ads or other elements that visitors should
interact with. Meanwhile, Google also allows the integration of [sticky AdSense ads](https://wpadvancedads.com/google-adsense-sticky-ads/).

 * [Manual and demo](https://wpadvancedads.com/fixed-widget-wordpress/)

#### Features

Fixed Widget is completely free of charge.

 * **Sticky Widgets** Use the Fixed Widget option on any widget and blocks in the
   sidebar
 * **Sticky Elements** Choose any element on your site and make it sticky
 * **Margin Top** allows you to stop sticky elements to cover floating menu bars
 * **Margin Bottom** pushes sticky elements up before they reach a certain distance
   towards the bottom window
 * **Stop Elements** push sticky elements up when they are scrolling into view
 * **Stop Blocks** defines blocks in your sidebar that push fixed blocks out of 
   the page
 * **Minimum Screen Width** and **Minimum Screen Height** allow you to disable sticky
   behavior on small screens
 * Written in plain JavaScript for better performance

#### Compatibility

Theme requirements:

 * `wp_head()` and `wp_footer()` functions in `header.php` and `footer.php` files
 * JavaScript errors could break sticky widgets

## Capturas de tela

 * [[
 * A fixed widget and a stop widget in action
 * [[
 * Fixed Widget plugin options
 * [[
 * Fixed Widget options for blocks in the widget editor
 * [[
 * Fixed Widget option for legacy widgets

## Instalação

 1. Follow the standard WordPress plugin installation procedure
 2. Activate the plugin through the plugins menu in WordPress
 3. Go to Appearance -> Widgets, enable the “Fixed Widget” option on any active widget
 4. Fine tune plugin parameters on Appearance -> Fixed Widget page

## Perguntas frequentes

### Why is the Fixed Widget plugin not working?

There are several reasons:

 1. Javascript errors on the page. Commonly caused by buggy plugins. Check javascript
    console of your browser. If you find errors, try to locate and fix its source.
 2. No `wp_head()` and `wp_footer()` functions in template. Check header.php and footer.
    php files of your active theme.
 3. Conflicts with other plugins and scripts
 4. CSS incompatibility

### Is it possible to fix multiple widgets?

Yes, it is possible to fix more than one widget even if they are located in different
sidebars.

### How can I style a fixed element only while it is sticky?

Fixed elements carry the `FixedWidget__fixed_widget__pinned` class, which allows
developers to change the styling only while the element is fixed.

### How to prevent overlapping with the footer?

Go to WP admin area, Appearance -> Fixed Widget. Here you can define the top and
bottom margins. Set bottom margin value >= footer height. Check the result, please.

If your footer height is changing from page to page it is better to use the `Stop
ID` option. Here you need to provide the HTML tag ID. The position of that HTML 
element will determine the margin bottom value. For example, let’s take the Twenty
Sixteen default theme. The theme’s footer container has an ID=”colophon”. In the`
Stop Element Selectors` option I need to enter `#colophon`.

### How to disable the plugin on mobile devices?

Use the options `Minimum Screen Width` and `Minimum Screen Height` to disable sticky
features when the browser window is too small. You can also use the [visitor conditions of Advanced Ads](https://wpadvancedads.com/manual/visitor-conditions/)
to target specific devices.

## Avaliações

![](https://secure.gravatar.com/avatar/c31756b6c5c6adea313154b31e7966a92bad2059849f888ab461ff7bf734ad5e?
s=60&d=retro&r=g)

### 󠀁[Abandoned plugin](https://wordpress.org/support/topic/abandoned-plugin-93/)󠁿

 [dorier75](https://profiles.wordpress.org/dorier75/) 26 fevereiro, 2024

Abandoned plugin and no response to support requests for several months

![](https://secure.gravatar.com/avatar/5a56a79721008d7f1ff85e2d184d7257691b27d6b2bea33544851ba76b86cb01?
s=60&d=retro&r=g)

### 󠀁[Worked very well for the last 5+ years and impressive support](https://wordpress.org/support/topic/worked-very-well-for-the-last-5-years-and-impressive-support/)󠁿

 [Arun Basil Lal](https://profiles.wordpress.org/arunbasillal/) 28 novembro, 2022
2 respostas

I have used this plugin on my website for the last 5+ years and it always worked
very well. Updates were always stress free and never broke any layout. With version
6 I had some layout issues and Thomas helped me fix it. It’s really hard to make
a plugin compatible with the vast amount of themes out there and I would have totally
understood if he didn’t want to spend the time to fix my specific issue. But I was
in for a pleasant surprise. I recommend this plugin and I wish him all the best.
Thank you for your time and efforts. Kind regards, Arun

![](https://secure.gravatar.com/avatar/ead8658b75d8d17c624ac50b55dc6445f441827350c74aa611341a9b863fcbb1?
s=60&d=retro&r=g)

### 󠀁[Very helpful widget](https://wordpress.org/support/topic/very-helpful-widget-3/)󠁿

 [infle](https://profiles.wordpress.org/infle/) 7 novembro, 2022 1 resposta

Thank you so much for such helpful widget. Very simple to setup and fast configuration.

![](https://secure.gravatar.com/avatar/cee26eb98e3ab060341baaa2bed659490c3bce08aecf58056de7b1c1eeb52856?
s=60&d=retro&r=g)

### 󠀁[Perfect tabs](https://wordpress.org/support/topic/perfect-tabs-2/)󠁿

 [egeoposada](https://profiles.wordpress.org/egeoposada/) 26 setembro, 2022

Thank you for such wonderful tabs. Everything simple and effective.

![](https://secure.gravatar.com/avatar/e9fbd101fe11070221e281c3a2b68291a6efa3f447d1493d24a93fd291877e83?
s=60&d=retro&r=g)

### 󠀁[Amazing !](https://wordpress.org/support/topic/amazing-3555/)󠁿

 [zepolo](https://profiles.wordpress.org/zepolo/) 31 agosto, 2022 1 resposta

This plugin surprised us with its efficiency and ease of use. It is very efficient
and does not slow down the loading of pages. We hesitated for a long time with other
plugins. But I think we made the right choice, the zones are very easy to configure,
which is not the case with other fixed widget type plugins. This one is completely
free and is not restricted. Kudos to the team

![](https://secure.gravatar.com/avatar/2ca490b29a50990b2abaf8ef32683243cc428d652b6b16cd2fd0a0ccbb19559b?
s=60&d=retro&r=g)

### 󠀁[Best Fixed Widget Plugin Made](https://wordpress.org/support/topic/best-fixed-widget-plugin-made/)󠁿

 [cactiarchive](https://profiles.wordpress.org/cactiarchive/) 29 agosto, 2022 1 
resposta

Great support, great plugin.

 [ Leia todas as 261 avaliações ](https://wordpress.org/support/plugin/q2w3-fixed-widget/reviews/)

## Colaboradores e desenvolvedores

“Fixed Widget and Sticky Elements for WordPress” é um programa de código aberto.
As seguintes pessoas contribuíram para este plugin.

Colaboradores

 *   [ monetizemore ](https://profiles.wordpress.org/monetizemore/)
 *   [ Advanced Ads ](https://profiles.wordpress.org/advancedads/)
 *   [ Max Bond ](https://profiles.wordpress.org/max-bond/)

Fixed Widget and Sticky Elements for WordPress” foi traduzido para 24 localidades.
Agradecemos aos [tradutores](https://translate.wordpress.org/projects/wp-plugins/q2w3-fixed-widget/contributors)
por suas contribuições.

[Traduzir o “Fixed Widget and Sticky Elements for WordPress” para seu idioma.](https://translate.wordpress.org/projects/wp-plugins/q2w3-fixed-widget)

### Interessado no desenvolvimento?

[Navegue pelo código](https://plugins.trac.wordpress.org/browser/q2w3-fixed-widget/),
consulte o [repositório SVN](https://plugins.svn.wordpress.org/q2w3-fixed-widget/)
ou assine o [registro de desenvolvimento](https://plugins.trac.wordpress.org/log/q2w3-fixed-widget/)
por [RSS](https://plugins.trac.wordpress.org/log/q2w3-fixed-widget/?limit=100&mode=stop_on_copy&format=rss).

## Registro de alterações

#### 6.2.3

 * Fix: fixed widget might increase its height when scrolling

#### 6.2.2

 * Fix: improve bottom offset calculation when scrolling up

#### 6.2.1

 * Fix: widget height increasing
 * Fix: widget scrolling align position
 * Fix: compatibility with existing CSS transition rules

#### 6.2.0

 * Improvement: requires PHP 7.2
 * Fix: various improvements in cases where the fixed widget flickered, or the height
   was could not be determined correctly

#### 6.1.1

 * Improvement: reposition the fixed widget when the screen is resized, e.g., a 
   mobile device turned into landscape mode
 * Improvement: various optimizations for specific themes and setups reported by
   users

#### 6.1.0

 * Feature: Add the `FixedWidget__fixed_widget__pinned` class to the fixed widget
   while it is sticky and remove it when it is unfixed. This allows users to apply
   their own styling only during a fixed state.
 * Improvement: rename “Test new version” option into “Improved version” and changed
   the option description to make it more clear that both script versions will be
   kept.
 * Improvement: change “Fixed Widget Options” menu item into “Fixed Widget”
 * Improvement: Handle edge cases where the Minimum Width option doesn’t work for
   specific themes

#### 6.0.7

 * Improvement: Compatibility with relative padding values

#### 6.0.6

 * Improvement: Compatibility with dynamically loaded content pages, i.e., infinite
   scroll
 * Improvement: Compatibility with widgets that have large offsets
 * Fix: Prevent padding from increasing on scroll

#### 6.0.5

 * Fix: Prevent overlapping of fixed widgets with non-fixed widgets when scrolling
   up

#### 6.0.4

 * Fix: Prevent fixed widgets overlapping non-fixed elements in certain themes
 * Fix: Class selectors saved under the Custom Elements were wrongly prefixed with‘#’

#### 6.0.3

 * Improvement: Check lazy elements and stop elements for changing their size and
   recalculate fixed position
 * Improvement: Lower check interval from 1000 to 500 ms

#### 6.0.2

 * Improvement: Fall back to previous version when the theme does not support the
   new script – mainly because of using float instead of flex
 * Improvement: Stop Elements work also when they are in a different column or sidebar
   than the fixed element
 * Improvement: Recalculate Fixed Widget height on scroll

#### 6.0.1

 * Fix: use the previous Stop ID value in the new Stop Elements section

#### 6.0.0

Version 6.0.0 is a full rewrite of the frontend script. It fixes many edge cases
like jumping, reloading, or resizing widgets.
 The rewrite also resolves bad Cumulative
Layout Shifts.

Most changes are available when you enable “Improved version” under Appearance >
Fixed Widget.

Please test and [let us know](https://wordpress.org/support/plugin/q2w3-fixed-widget/)
if you discover any issues.

 * added new (and optional) script version that uses `position: sticky` instead 
   of `position: fixed`
 * the frontend script does not need jQuery anymore
 * removed unneeded options that previously helped resolving edge cases
 * “Stop Elements” and “Custom Fixed Elements” now accept any selector, including
   IDs, Class, and Type selectors.
 * fixed blocks in sidebars as introduced in WordPress 5.8
 * define stop blocks in sidebars that move up fixed blocks on scrolling
 * improved option descriptions on the admin page
 * improved behavior for elements higher than the screen – they first stick at the
   top and scroll to the bottom later
 * removed duplicating widget code

#### 5.3.0

 * fixed option not saving when using the Gutenberg plugin to edit sidebars with
   block editor
 * disabled scripts and output on AMP pages since sticky widgets are not part of
   the AMP standard
 * removed explicit translation files since all translations are handled through
   https://translate.wordpress.org/projects/wp-plugins/q2w3-fixed-widget/

#### 5.2.0

 * Added `q2w3-fixed-widget-sidebar-options` filter for widget options in the frontend.

#### 5.1.9

 * Fixed JavaScript events which were not called in some setups.

#### 5.1.8

 * Fixed JavaScript bug that caused jumping / flickering of fixed widgets.

#### 5.1.7

 * Fixed “a.target.className.indexOf is not a function” bug

#### 5.1.6

 * linguistic corrections
 * cleanup of the options page

#### 5.1.5

 * author change

#### 5.1.4

 * Added filter “q2w3-fixed-widgets”. It allows to filter array of widgets marked
   as fixed.

#### 5.1.3

 * Now compatible with WP Page Widget plugin

#### 5.1.2

 * Now works fine with Shortcodes Ultimate widgets!

#### 5.1.1

 * Resolves problems with Margin Bottom and Stop ID from version 5.1!

#### 5.1

 * New options load method!
 * Tested with WordPress 4.9

#### 5.0.4

 * Compatibility patch for Better WordPress Minify plugin.

#### 5.0.3

 * Improved solution for “q2w3_sidebar_options is not defined” error.

#### 5.0.2

 * Plugin javascript optimization
 * To resolve “q2w3_sidebar_options is not defined” error `wp_add_inline_script`
   function is used. WordPress 4.5 required for this fix!
 * Added option `Disable MutationObserver`. Use this option only as a backup to 
   restore version 4 behavior!

#### 5.0.1

 * Fixed problem in multiple sidebars layout

#### 5.0

 * Optimized client side performance. Detection of page changes is now based on 
   MutationObserver API. Widget parameters recount is fired only when needed! Refresh
   interval option used only for campatibility with old browsers (no MutationObserver
   API support).
 * Improved compatibility with caching plugins (W3TC, Autoptimize and etc.). No 
   need to exclude jQuery and plugin files from cache!
 * Async/Defer script load method support
 * Added `Disable Width` and `Disable Height` options
 * Note for cache plugins users: don’t forget to clear cache after upgrading to 
   version 5! Options format has been changed!

#### 4.1

 * Added `Stop ID` option. Use it when you cannot specify `Margin Bottom` value.
   Solution provided by [Julian_Kingman](https://wordpress.org/support/profile/julian_kingman)!
 * Now the plugin is aware of the WordPress admin bar presence!
 * Fixed destruction of `jQuery(window).load` hook. There should be no problems 
   with other jQuery plugins now!
 * Added German translation
 * Updated internationalization support

#### 4.0.6

 * A small [bug fix](https://wordpress.org/support/topic/widget-gets-wider-when-it-reaches-the-top)
 * Added French translation

#### 4.0.5

 * New option “Inherit widget width from the parent container” to better support
   responsive layouts.
 * Javascript optimization.

#### 4.0.4

 * Added option “Auto fix widget id”. It is on by default. If the plugin is working
   with this option switched off – leave it in off position!

#### 4.0.3

 * Optimized code to resolve [plugin crash after 4.0.1 update](https://wordpress.org/support/topic/the-plugin-crash-after-401-update)
   problem
 * Minified javascript code

#### 4.0.1

 * Hotfix! Removes problem with duplicated widget code.

#### 4.0

 * Resolved [widget jumping](https://wordpress.org/support/topic/widgets-below-fixed-widgets-jump-up)
 * Added code to automatically fix “widget id problem”
 * Added new compatibility option (plugin priority)
 * Added complete uninstall (uninstall script launched automatically when you DELETE
   plugin)
 * Added Spanish translation
 * Removed depricated options

#### 3.0

 * This version brings you a long waited capability to stick widgets located in 
   different sidebars! Enjoy!
 * Fixed conflict with WP Page Widget plugin
 * A few small bugs cleaned
 * Warning! “Disable plugin on mobile devices” and “Disable plugin on tablet devices”
   options now are depricated and will be removed in the next release. Use “Screen
   Max Width” option instead!

#### 2.3

 * Now user can disable plugin, when browser window width is less then specified
   value (check plugin options).

#### 2.2.4

 * This version compatible with jQuery 1.9 and 1.10

#### 2.2.3

 * Little internal improvments
 * Mobile Detect updated to version 2.6.0

#### 2.2.2

 * Fixed PHP [Error](https://wordpress.org/support/topic/breakes-with-php-53)
 * Mobile Detect updated to version 2.5.8

#### 2.2.1

 * Fixed PHP [Warning](https://wordpress.org/support/topic/error-with-the-new-update-22)

#### 2.2

 * Now the plugin is able to reflect dynamic page content changes (infinite scroll,
   ajax basket and other javascript stuff)!!!
 * Added new option to plugin settings: Refresh interval. Recommended values between
   500 – 2000 milliseconds. Note: setting have impact on the site performance (client
   side). If you don’t have dynamic content, set Refresh interval = 0.
 * Mobile Detect class updated to version 2.5.7

#### 2.1

 * New option to define custom widget IDs for static sidebars and etc.
 * New option to disable plugin on mobile devices.
 * Fixed javascript error when no sidebars exists on a page.

#### 2.0

 * Fixed footer overlapping problem! Now users can customize top and bottom margins
   for the fixed widgets from the admin area (Appearance -> Fixed Widget).
 * Added localization support

#### 1.0.3

 * Normalized plugin behavior when sidebar is longer then main content. Note: possible
   overlapping with footer is still exists.

#### 1.0.2

 * Fixed problem with widgets displayed only on certain pages.
 * Optimized javascript code.

#### 1.0.1

 * Improved compatibility with Webkit based browsers (like Chrome and Safari).
 * Removed unnecessary CSS.

#### 1.0

 * First public release.

## Meta

 *  Versão **6.2.3**
 *  Última atualização **3 anos atrás**
 *  Instalações ativas **90.000+**
 *  Versão do WordPress ** 5.0 ou superior **
 *  Testado até **6.2.9**
 *  Versão do PHP ** 7.2 ou superior **
 *  Idiomas
 * [Arabic](https://ar.wordpress.org/plugins/q2w3-fixed-widget/), [Chinese (China)](https://cn.wordpress.org/plugins/q2w3-fixed-widget/),
   [Chinese (Taiwan)](https://tw.wordpress.org/plugins/q2w3-fixed-widget/), [Danish](https://da.wordpress.org/plugins/q2w3-fixed-widget/),
   [Dutch](https://nl.wordpress.org/plugins/q2w3-fixed-widget/), [Dutch (Belgium)](https://nl-be.wordpress.org/plugins/q2w3-fixed-widget/),
   [English (Australia)](https://en-au.wordpress.org/plugins/q2w3-fixed-widget/),
   [English (Canada)](https://en-ca.wordpress.org/plugins/q2w3-fixed-widget/), [English (New Zealand)](https://en-nz.wordpress.org/plugins/q2w3-fixed-widget/),
   [English (UK)](https://en-gb.wordpress.org/plugins/q2w3-fixed-widget/), [English (US)](https://wordpress.org/plugins/q2w3-fixed-widget/),
   [French (France)](https://fr.wordpress.org/plugins/q2w3-fixed-widget/), [Galician](https://gl.wordpress.org/plugins/q2w3-fixed-widget/),
   [German](https://de.wordpress.org/plugins/q2w3-fixed-widget/), [German (Austria)](https://de-at.wordpress.org/plugins/q2w3-fixed-widget/),
   [German (Switzerland)](https://de-ch.wordpress.org/plugins/q2w3-fixed-widget/),
   [Italian](https://it.wordpress.org/plugins/q2w3-fixed-widget/), [Japanese](https://ja.wordpress.org/plugins/q2w3-fixed-widget/),
   [Romanian](https://ro.wordpress.org/plugins/q2w3-fixed-widget/), [Russian](https://ru.wordpress.org/plugins/q2w3-fixed-widget/),
   [Spanish (Chile)](https://cl.wordpress.org/plugins/q2w3-fixed-widget/), [Spanish (Colombia)](https://es-co.wordpress.org/plugins/q2w3-fixed-widget/),
   [Spanish (Ecuador)](https://es-ec.wordpress.org/plugins/q2w3-fixed-widget/), 
   [Spanish (Spain)](https://es.wordpress.org/plugins/q2w3-fixed-widget/) e [Spanish (Venezuela)](https://ve.wordpress.org/plugins/q2w3-fixed-widget/).
 *  [Traduzir para seu idioma](https://translate.wordpress.org/projects/wp-plugins/q2w3-fixed-widget)
 * Tags
 * [ads](https://br.wordpress.org/plugins/tags/ads/)[fixed widget](https://br.wordpress.org/plugins/tags/fixed-widget/)
   [sidebar](https://br.wordpress.org/plugins/tags/sidebar/)[sticky widget](https://br.wordpress.org/plugins/tags/sticky-widget/)
   [widget](https://br.wordpress.org/plugins/tags/widget/)
 *  [Visualização avançada](https://br.wordpress.org/plugins/q2w3-fixed-widget/advanced/)

## Classificações

 4.7 de 5 estrelas.

 *  [  231 avaliações com 5 estrelas     ](https://wordpress.org/support/plugin/q2w3-fixed-widget/reviews/?filter=5)
 *  [  12 avaliações com 4 estrelas     ](https://wordpress.org/support/plugin/q2w3-fixed-widget/reviews/?filter=4)
 *  [  4 avaliações com 3 estrelas     ](https://wordpress.org/support/plugin/q2w3-fixed-widget/reviews/?filter=3)
 *  [  2 avaliações com 2 estrelas     ](https://wordpress.org/support/plugin/q2w3-fixed-widget/reviews/?filter=2)
 *  [  12 avaliações com 1 estrelas     ](https://wordpress.org/support/plugin/q2w3-fixed-widget/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/q2w3-fixed-widget/reviews/#new-post)

[Ver todas avaliações](https://wordpress.org/support/plugin/q2w3-fixed-widget/reviews/)

## Colaboradores

 *   [ monetizemore ](https://profiles.wordpress.org/monetizemore/)
 *   [ Advanced Ads ](https://profiles.wordpress.org/advancedads/)
 *   [ Max Bond ](https://profiles.wordpress.org/max-bond/)

## Suporte

Tem algo a dizer? Precisa de ajuda?

 [Ver fórum de suporte](https://wordpress.org/support/plugin/q2w3-fixed-widget/)