I don’t know if this is a bug or something else. It started happening after updating wordpress to 7.0.4 and Bricks to 2.3.11. Maybe it’s unrelated but I really appreciate if anyone faced this issue before.
I can create classes and manually set styles (using the UI). Copy and paste styles doesn’t work from ID styles to class styles (on the new classes). It only works if I copy styles from a previously created class and paste it on the new one (using all the controls to do that: left panel, global classes dropdown and right click menu).
I’ve been building the site with no issues before and the server configuration is the same, so no ssl changes affecting the copy/paste functionality.
That being said..Pasted or created manually (since copy and paste doesn’t seem to work), I can see the changes in the builder editor but not in the frontend. Also in the frontend, using the inspector it shows the element new class, but no styles.
Deactivating cascade layering doesn’t seem to make any difference. I also exported the global classes json to see if classes are stored correctly and the new classes are there and have styles.
In this particular case the class affects a heading element, but it happens with other elements as well.
Solved! There was a global class named “.”
This class with no name and (apparently) some styles was breaking everything up. I’m not sure how it ended there but it was there. Maybe it was corrupted somehow? Connection lost while editing?
Anyway, for those who experience the same issue, here’s the solution.
Hi Mint,
The “.” classes are a known issue, but so far no one on the team has been able to reproduce them. They have only appeared on user pages so far. However, none of the users has been able to provide any specific information on how they occur.
Are you perhaps using a third-party plugin that automatically generates classes? Something like a “BEM generator”? That could be a possible cause.
The only plugin installed is ACF. No class generation apart from Bricks.
Good to know that is a known issue. I can confirm that, at least in my case, I lost my internet connection while editing a few days back. After that it started happening.
On the other hand, a class needs a name first then styles, right? It‘s strange that they are stored with classes and no name when this thing occur. I think maybe has to do with the UNDO/REDO action? Sometimes it’s buggy. I can’t provide more info about it, sorry.
If this helps, I wasn’t able to select or delete the empty class in the class manager. What I did is lock the class in the builder (which is the only thing you can actually do) and then go back to the class manager, filter by locked classes > select all > move to trash.
Have you perhaps imported any classes, templates (that contain classes), or anything like that? Either through the Class Manager, Template Import, or Remote Templates?
Yes I did. Template import and copy/paste from another project. No class import, no remote templates. This one was a blank project. I didn’t found any class conflict or duplicates, in case it helps.
Thanks for checking. Yeah, all in all, pretty strange…
In a future version, we’ll make it easier to delete these “dot” classes and flag them in the Class Manager so they should stand out right away. Who knows, maybe by then we’ll figure out how they’re created