Title: A bug with widgets
Last modified: February 5, 2022

---

# A bug with widgets

 *  [Halil](https://wordpress.org/support/users/halilesen/)
 * (@halilesen)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/a-bug-with-widgets/)
 * Hi Ben,
    I hope you are well. I wanted to report a bug related to widgets.
 * That is, if a widget is hidden, its location is not hidden either.
 * Look: [https://i.hizliresim.com/86pyosp.jpg](https://i.hizliresim.com/86pyosp.jpg)
 * Normally there are 3 widgets there. One of them is hidden from that page or user,
   but it is treated as if there are three.
 * This is a bug that specifically prevents using different widgets for different
   pages.
 * What do you think?
 * And if you don’t get me wrong, I’d like something. What are the codes for this
   style, that is, the standing of two widgets side by side? I want to do the same
   to the site’s forum. As I mentioned before, I’m trying to achieve WordPress theme
   unity with phpBB. Good news: 85% similar.

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

 *  Thread Starter [Halil](https://wordpress.org/support/users/halilesen/)
 * (@halilesen)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/a-bug-with-widgets/#post-15334917)
 * Ben?
 *  Theme Author [Ben Sibley](https://wordpress.org/support/users/bensibley/)
 * (@bensibley)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/a-bug-with-widgets/#post-15338038)
 * Hi Halil,
 * I don’t always post here on weekends, but I can help with this now.
 * This is a tricky issue to solve. You can’t style based on the number of widgets
   with CSS alone, which is why Mission News gets the number of widgets in the widget
   area and adds a CSS class based on that. If a widget is registered to the widget
   area but hidden visually, then this will cause a layout issue.
 * I think the only solution would be to style the widgets based on a fixed number
   of visible widgets. For instance, assume that every page displays three widgets
   in the footer and use the following CSS:
 *     ```
       @media all and (min-width: 800px) {
   
         #site-footer-widgets .widget {
           width: 33.3% !important;
         }
       }
       ```
   
 *  Thread Starter [Halil](https://wordpress.org/support/users/halilesen/)
 * (@halilesen)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/a-bug-with-widgets/#post-15358108)
 * It works. There was just border redundancy, I fixed it with the code below.
 * `border-right: none !important;`
 * You know, but I think it can be fixed with future updates. Although it doesn’t
   seem like a small problem, I think it is a problem.
 * Thank you very much again.
 *  Theme Author [Ben Sibley](https://wordpress.org/support/users/bensibley/)
 * (@bensibley)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/a-bug-with-widgets/#post-15360361)
 * Got it. Thanks for the tip!

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

The topic ‘A bug with widgets’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/mission-news/1.65/screenshot.png)
 * Mission News
 * [Support Threads](https://wordpress.org/support/theme/mission-news/)
 * [Active Topics](https://wordpress.org/support/theme/mission-news/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/mission-news/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/mission-news/reviews/)

## Tags

 * [widgets](https://wordpress.org/support/topic-tag/widgets/)

 * 4 replies
 * 2 participants
 * Last reply from: [Ben Sibley](https://wordpress.org/support/users/bensibley/)
 * Last activity: [4 years, 4 months ago](https://wordpress.org/support/topic/a-bug-with-widgets/#post-15360361)
 * Status: not resolved