# SOLVED: Layout breaks when using filters on the posts element

**URL:** <https://forum.bricksbuilder.io/t/solved-layout-breaks-when-using-filters-on-the-posts-element/16749>\
**Category:** Bugs\
**Tags:** v1-9-2\
**Created:** [November 3, 2023, 11:08am UTC](https://forum.bricksbuilder.io/t/solved-layout-breaks-when-using-filters-on-the-posts-element/16749 "2023-11-03T11:08:06Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![jomawie](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/jomawie/32/2149_2.png) [@jomawie](https://forum.bricksbuilder.io/u/jomawie)\
**Post date:** [November 3, 2023, 11:08am UTC](https://forum.bricksbuilder.io/t/solved-layout-breaks-when-using-filters-on-the-posts-element/16749/1 "2023-11-03T11:08:06Z")

</div>

Hey there,

on a website I am using the posts element with a (category) filter on top of it. When I select a filter and scroll down the page a little bit, the (in my case 3 columns) layout shifts and breaks the 3 columns.  
I’ve created a screen recording since the problem is pretty hard to describe. I hope this helps.  
[Layout breaks after setting a filter](https://tonwerte.net/filter.mp4)

Any ideas? 😅

Thank you!

**Browser** : Chrome 110  
**OS** : macOS / Windows / Linux / etc.  
**URL** : Link to a page that illustrates this issue  
**Video** : Short screen recording that illustrates this issue (free tool: [jam.dev](https://jam.dev/))

[Please describe this bug in as much detail as possible so we can replicate & debug this bug]

---

<div class="post-metadata">

**Author:** ![charaf](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/charaf/32/34412_2.png) [@charaf](https://forum.bricksbuilder.io/u/charaf)\
**Post date:** [November 5, 2023, 12:41pm UTC](https://forum.bricksbuilder.io/t/solved-layout-breaks-when-using-filters-on-the-posts-element/16749/2 "2023-11-05T12:41:54Z")

</div>

Hi @jomawie,

Could you please disable all plugins to see if there’s a conflict?

---

<div class="post-metadata">

**Author:** ![jomawie](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/jomawie/32/2149_2.png) [@jomawie](https://forum.bricksbuilder.io/u/jomawie)\
**Post date:** [November 5, 2023, 1:31pm UTC](https://forum.bricksbuilder.io/t/solved-layout-breaks-when-using-filters-on-the-posts-element/16749/3 "2023-11-05T13:31:23Z")

</div>

Hi @charaf,

thanks for your reply. I deactivated all plugins and the problem still persists.

I also tested on Chrome, Safari and Firefox. For some reason, the problem is even worse with Firefox. The Layout isn’t even loading with three columns … it’s loading only two.

Just to be sure, I removed all of my custom CSS too and resetted nearly all the settings on the element. I removed all margins and paddings, to be sure, that they don’t affect the calculation of the li.bricks-layout-item. But that also did not help.

I also tested on another website (on another hoster and server) that is running Bricks 1.9.1.1 and got the same strange behavior.

Let me know if you need more details or something 🙂

---

<div class="post-metadata">

**Author:** ![charaf](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/charaf/32/34412_2.png) [@charaf](https://forum.bricksbuilder.io/u/charaf)\
**Post date:** [November 5, 2023, 2:07pm UTC](https://forum.bricksbuilder.io/t/solved-layout-breaks-when-using-filters-on-the-posts-element/16749/4 "2023-11-05T14:07:11Z")

</div>

Hm yeah, that’s odd. Could you please share **temporary admin access** to [help@bricksbuilder.io](mailto:help@bricksbuilder.io) with **a link to this forum thread** so we can investigate this further?

---

<div class="post-metadata">

**Author:** ![charaf](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/charaf/32/34412_2.png) [@charaf](https://forum.bricksbuilder.io/u/charaf)\
**Post date:** [November 7, 2023, 3:04pm UTC](https://forum.bricksbuilder.io/t/solved-layout-breaks-when-using-filters-on-the-posts-element/16749/5 "2023-11-07T15:04:07Z")

</div>

Hi @jomawie,

Thanks a lot for sharing access to both the live & staging sites. I was able to reproduce the issue and I must say it’s very odd and isn’t reliably reproducible which makes it even more tricky. It’s most likely a bug with Isotope.js so I have created an internal ticket to investigate this further 🙂

---

<div class="post-metadata">

**Author:** ![jomawie](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/jomawie/32/2149_2.png) [@jomawie](https://forum.bricksbuilder.io/u/jomawie)\
**Post date:** [November 7, 2023, 3:16pm UTC](https://forum.bricksbuilder.io/t/solved-layout-breaks-when-using-filters-on-the-posts-element/16749/6 "2023-11-07T15:16:41Z")

</div>

@charaf Thanks a lot! 🙂

---

<div class="post-metadata">

**Author:** ![timmse](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/timmse/32/1192_2.png) [@timmse](https://forum.bricksbuilder.io/u/timmse)\
**Post date:** [December 8, 2023, 9:48am UTC](https://forum.bricksbuilder.io/t/solved-layout-breaks-when-using-filters-on-the-posts-element/16749/7 "2023-12-08T09:48:39Z")

</div>

Hi Jochen,

We’ve fixed this issue in Bricks 1.9.4, now available as a one-click update in your WordPress Dashboard.  
Changelog: [Bricks 1.9.4 Changelog – Bricks](https://bricksbuilder.io/release/bricks-1-9-4/)

Please let us know if you are still experiencing issues.

Best regards,  
timmse

---

<div class="post-metadata">

**Author:** ![jomawie](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/jomawie/32/2149_2.png) [@jomawie](https://forum.bricksbuilder.io/u/jomawie)\
**Post date:** [December 8, 2023, 10:02am UTC](https://forum.bricksbuilder.io/t/solved-layout-breaks-when-using-filters-on-the-posts-element/16749/8 "2023-12-08T10:02:29Z")

</div>

Hi timmse,

works perfect, thank you!

---

<div class="post-metadata">

**Author:** ![avanti](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/avanti/32/1244_2.png) [@avanti](https://forum.bricksbuilder.io/u/avanti)\
**Post date:** [December 15, 2023, 11:26pm UTC](https://forum.bricksbuilder.io/t/solved-layout-breaks-when-using-filters-on-the-posts-element/16749/9 "2023-12-15T23:26:53Z")

</div>

Hi,

My Posts element layout also breaks when using the Taxonomy filter with Bricks 1.9.4.  
Different issue but involving the same items.

The Posts element has a 2 columns grid, working fine without a Taxonomy filter.  
I see in the dev tools that the grid is handled by CSS Grid.

 ![CleanShot 2023-12-16 at 00.13.01](https://forum.bricksbuilder.io/uploads/default/original/2X/1/1bb8583cf93397d56e0296273d744c637862a0c7.jpeg)  
 ![CleanShot 2023-12-16 at 00.14.31](https://forum.bricksbuilder.io/uploads/default/original/2X/6/67107b07112905573188fb266d2562b991a88b03.jpeg)

When enabling the Taxonomy filter (Isotope it seems), Posts in the second column are pushed below Posts of the first column.  
The grid is now (badly) handled by CSS Flexbox.

 ![CleanShot 2023-12-16 at 00.15.24](https://forum.bricksbuilder.io/uploads/default/original/2X/d/dbbe3776b154393a95523320ef34d9bc6e1fb367.jpeg)  
 ![CleanShot 2023-12-16 at 00.17.23](https://forum.bricksbuilder.io/uploads/default/original/2X/4/46269f6e2652a45375d17924cf768e5d5d7c6fca.jpeg)

---

<div class="post-metadata">

**Author:** ![avanti](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/avanti/32/1244_2.png) [@avanti](https://forum.bricksbuilder.io/u/avanti)\
**Post date:** [December 15, 2023, 11:50pm UTC](https://forum.bricksbuilder.io/t/solved-layout-breaks-when-using-filters-on-the-posts-element/16749/10 "2023-12-15T23:50:50Z")

</div>

A clue, the grid Posts get absolute positionning with inline CSS (what’s the interest in a flexbox container…?) and the values look wrong: all Posts get `left: 0%;`

 ![CleanShot 2023-12-16 at 00.47.09](https://forum.bricksbuilder.io/uploads/default/original/2X/5/510fe39d8383086c52e533f4838639f167074a50.jpeg)

---

<div class="post-metadata">

**Author:** ![timmse](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/timmse/32/1192_2.png) [@timmse](https://forum.bricksbuilder.io/u/timmse)\
**Post date:** [December 18, 2023, 8:57am UTC](https://forum.bricksbuilder.io/t/solved-layout-breaks-when-using-filters-on-the-posts-element/16749/11 "2023-12-18T08:57:04Z")

</div>

Hi Emmanuel,  
A builder reload should fix the positioning problem on the canvas. I can’t see any problem at the front end while trying to replicate the issue. Can you provide a live link?

> [@avanti](#):
>
> …the grid Posts get absolute positionning with inline CSS…

Yep, that’s how [isotope](https://isotope.metafizzy.co/) works 🙂

---

<div class="post-metadata">

**Author:** ![avanti](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/avanti/32/1244_2.png) [@avanti](https://forum.bricksbuilder.io/u/avanti)\
**Post date:** [December 18, 2023, 3:20pm UTC](https://forum.bricksbuilder.io/t/solved-layout-breaks-when-using-filters-on-the-posts-element/16749/12 "2023-12-18T15:20:03Z")

</div>

Hi @timmse,

Thanks for having check on your end, at least i know this is not normal behaviour.  
Reloading the builder doesn’t make any change on my site, so i guess there could be a conflict somewhere, i will try to troubleshoot.

And sorry i have no link to share, this is a Mamp local site.

This is not a big deal anyway, i usually use WP Gridbuilder to filter Posts grids, but i’m currently discovering Bricks and trying all i find, you know.  
I thought this Isotope taxonomy filter could be useful for a quick and simple filtering. 😉
