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
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.
-
Ben?
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; } }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.
Got it. Thanks for the tip!
The topic ‘A bug with widgets’ is closed to new replies.
