DUPLICATE: No Styles in Dynamic Popups

Browser: All
OS: –
URL: –
Video: –

Big problem - can anyone help ?
I am using a popup template with dynamic content.
(When clicking on an icon I pass a post ID - this post is then loaded into the popup with Ajax - this is no problem and works). The posts that are loaded into the popup also have Bricks content. All styles that I define in this content (e.g. display Flex…align Center or background color) are then ignored in the popup itself - they are simply not there ??? In turn, all classes that I give to an element (e.g. margin-top-l - I use ACSS) work.
Does anyone have a tip on what is wrong here? Is this due to the dynamic loading via Ajax ?

in Builder:

On Site (in Popup)

make a recording with this tool it is free so mods can help you https://jam.dev/

I have edit the Post - thanks

Hi @LouieX ,

Please may I know if you are creating a Popup for a query loop. If so, please check here and ensure your Popup is located within the Query loop via the Template element instead of a Popup condition.

If the template is not placed inside the query loop, there will be missing styles.

Regards,
Jenn

Wait ??? Styles are not loaded if i open a simple popup via Javascript “bricksOpenPopup” ?

The Problem (have found) - all Settings in styling (id based) doesnt load - but if i have style via classes (ACSS) - its works

Hi @LouieX ,

Sorry that I misunderstood your setup and thought it was inside a query loop.

As per my reply in your other forum post, I can’t replicate the issue.

As you can see here, ID level style applied, CSS class style applied

It’s not possible for us to assist if no URL is provided. You can also send us an email if the URL is confidential. (help@bricksbuilder.io by using your license purchased email and include this forum thread as a reference)

Alternatively, if you could replicate this issue in try.bricksbuilder.io or a dummy website (not your client’s website), we can investigate too.

Regards,
Jenn

Hi Jenn,
I have sent a Email. There is a Login and an Explanation…
(The Email is from a other Adresse as the Lizence Mail - but in the Email Text i have wrote the Lizence Mail)

Best Thx, Ivo

Thanks @LouieX ,

Understand your setup now and I linked this thread with WIP: ID level styles missing when using looping Ajax Popup + Post Content element with Bricks source - #2 by timmse

The missing ID level style is related to the Post Content element + Bricks source in AJAX Popup.

I will close this thread now.

Regards,
Jenn