CSS classes are not working. As you can see in the attached file, I have given a class to the heading element on which a font size has been applied. And this is also showing in the Brick builder, but after updating, when we are looking at the frontend, the styling is not showing there, although the class is attached to the heading.
Yes, CSS styling is being applied directly to the ID level.
This issue popped up yesterday morning when I updated to Bricks Theme version 1.9.6.1.
Yes, I’ve been using ACSS BEM for a while now, and I’ve been working on this website for nearly a month. No issues with ACSS. I’ve deactivated it and tried static values, but the styling still isn’t working.
@timmse could you take a look and confirm + solve this?
It is not clear yet, if it is connected to ACSS Auto BEM.
I had a chat with Christoph from ACSS and he investigated: There is a slight chance, that when using the Auto BEM function and saving the page within 100ms, that an empty array gets added to the global classes. When this happens styling on Class level does not work anymore - in this case it doesnt matter if automatic.css is activated or deactivated.
But I am not sure if that was the reason for the empty array at my global classes or for your problem.
If thats what happened at your site:
Jenn from Bricks fixed it for me - here is how:
It’s just a one-line fix, please note that it might vary in the official release.
Edit the includes/helpers.php
Search for save_global_classes_in_db (roughly on line 1628)
After adding this line of code, please edit your template, you must tweak some styles like add underline or bold text to trigger a resave of the global class, then save the builder.
Now all your styles on class should work in frontend.
Now everything works for me, but I am a bit scared to use the Auto BEM feature, cause I am not sure if this caused it or not.
I am not sure if this is a permant fix. If I understod Bricks Support correctly, they are implementing this in the new update. If I understood Automatic.css Support they are also implementing this in their next update.