NO BUG: Bricks CSS Classes field - issue

Browser: Edge, Version 135.0.3179.54 (Official build) (64-bit)
OS: Windows
URL: NOT Live Yet

Custom Classes Field

This is not a live page yet.

Bricks does not apply the custom class even though I have added it to this field.
Maybe I’m in the wrong place?

In Dev Tools, I can manually add the custom class to the DIV and it applies it.

Is this not the way to apply a custom class? Seems like I’ve done it this way before.

I can manually apply the class from WPCodeBox or ACSS Global SCSS.

Regards,
~ Cory C.

Hi Cory,
Welcome to the forum!

It depends. If you add a class there, it gets added to the outermost element wrapper. Depending on what the class should do, this might not lead to the desired styling.

Can you provide a screencast using https://jam.dev showing and explaining the issue in detail?

Best regards,
timmse

It miraculously healed itself, both in builder and in the front end.
Weird!

Reloading the builder was the first thing I tried, but that did nothing to fix it. Next day . . . It’s working.

So, are you saying that the class is not put into the element itself, where I placed it?
Or, does it go to the parent? Something else?
I feel like I’m missing something.

In this layout it is placed in the first div in a section, and it is there now.

Ok, if everything works now, everything is fine :slight_smile: If changes only become visible after some time, this is usually due to caching mechanisms, over which we have no influence.

1 Like

You’re not going to believe this, but even after deleting that section and replacing it with the template (which did cause the query to get the correct CPT content), both the builder and the frontend are showing the old data again. HOW is this possible?

I think my list of things touched to delete cache and transients is very thorough. What am I missing there?

Sounds like pure magic :sweat_smile: Joking aside: please record a screencast showing and explaining the issue (with voice, please, if possible) and send the video/video link, a link to this thread, and login credentials to help@bricksbuilder.io

I figured it out. I was using the WPSSO FAQ plugin, and while it was still enabled, I had used their custom post type. The CPT was called Questions.

When I disabled it, I had forgotten to make the changes to the accordion list. Disabling it does not remove the data, or the query connections that are already accessing it.

Weeks later, when I made an update to the CPT content for the FAQs, it wasn’t showing in the builder or the front end 'cause it was querying the wrong data. What really puzzles me now, though, is when I created a template, deleted the section, and added it back in from the template, it was querying my FAQ CPT and not the Questions, because I changed the query loop, and it was showing the correct information, so it had to be.

But I’ve noticed that recently in Bricks:
If I make changes to an element and save it, most of the time, it doesn’t save those changes unless I click off of that element first and then save. That way, it updates the data.

The problem that this causes is, all those changes that I make can just disappear. So I select the element, make the changes, hit Save. It’s not on the front end. I click around, make some other changes, save it. Some of those get saved, and many of them don’t. I go back to the previous elements I was editing, and everything’s gone that I did.

Why am I saying this? 'Cause I wonder if that’s somehow connected to why it looked like it had correct data, 'cause I did make the change to the query loop and it didn’t save it.

So, the bottom line is operator error, but there is definitely an issue in Bricks when saving. I’ve hit this problem repeatedly until I figured out that clicking away from an element before clicking save will save the changes; it’s a ritual now. Edit, click a different element, save, and I stopped having that problem.

Hi Cory,
I’m glad you were able to find the cause of the problem.

However, I can’t understand/replicate the saving problem. Does this occur in every installation, or only in a specific one? Do you have a simple way to reproduce the problem permanently (without additional plugins and caching enabled)? If so, please record a screencast, explain what you are doing, and send it along with your access data to help@bricksbuilder.io.

Then we can try to replicate it :raised_fist:

1 Like

This is the only site I’ve been working on, so I can’t speak to it ocurring elsewhere.

Latest Bricks. AT, BricksExtras, and ACSS, and a bunch of other dodads. So, could be anything, and diagnosing it will have to wait. I know that if I click away from the element prior to clicking save, it captures the edits. I have a workaround. It does seem to happen more when I have more than one builder open at a time, and definitely happens when I open the ACSS panel and make a change.

I’ll open a separate thread later if needed.

Thanks @timmse
~ Cory C.