# NO BUG: Custom CSS Classes Not Working on Frontend

**URL:** <https://forum.bricksbuilder.io/t/no-bug-custom-css-classes-not-working-on-frontend/34966>\
**Category:** Bugs\
**Tags:** v2-0-1\
**Created:** [August 20, 2025, 11:25am UTC](https://forum.bricksbuilder.io/t/no-bug-custom-css-classes-not-working-on-frontend/34966 "2025-08-20T11:25:47Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Grey](https://forum.bricksbuilder.io/letter_avatar_proxy/v4/letter/g/b782af/32.png) [@Grey](https://forum.bricksbuilder.io/u/Grey)\
**Post date:** [August 20, 2025, 11:25am UTC](https://forum.bricksbuilder.io/t/no-bug-custom-css-classes-not-working-on-frontend/34966/1 "2025-08-20T11:25:47Z")

</div>

Custom CSS classes added to elements in the editor are not being applied on the frontend. The classes work correctly inside the Bricks editor preview but disappear or do not take effect when the page is viewed live.

**Steps to Reproduce:**

1. Open a page with BricksBuilder (v2.0.1).
2. Add a custom CSS class to an element (e.g., `.gk-dropdown-content`).
3. Apply styling to this class through Bricks or custom CSS.
4. Save and view the page on the frontend.

**Expected Result:**  
The custom CSS class (e.g., `.gk-dropdown-content`) should be visible in the frontend HTML and its styles should apply consistently, just like in the editor.

 ![sc1](https://forum.bricksbuilder.io/uploads/default/original/3X/f/a/fadbf68669fd02977b515e9c857c7865bc50b504.jpeg)  
 ![sc2](https://forum.bricksbuilder.io/uploads/default/original/3X/5/3/53ce6713879e4a8857006e7348ff398a04784682.jpeg)

**Actual Result:**

- The class appears in the editor and styles apply correctly.
- On the frontend, the class is missing or ignored in the rendered output (see attached screenshots).
  - **Screenshot 1 (Editor):** The custom class `.gk-dropdown-content` is visible and styles apply.
  - **Screenshot 2 (Frontend Inspector):** The class exists in the markup but styles do not apply as expected.

**Additional Notes:**

1. This is a fresh install of v2.0.1.
2. All plugins except WooCommerce were deactivated.
3. Tried disabling Bricks cascade layer, but the problem persisted.
4. Clearing cache and regenerating CSS files does not resolve the issue.
5. Tested in multiple browsers with the same result.

---

<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:** [August 20, 2025, 11:34am UTC](https://forum.bricksbuilder.io/t/no-bug-custom-css-classes-not-working-on-frontend/34966/2 "2025-08-20T11:34:18Z")

</div>

Hi Grey,  
Welcome to the forum, and thanks so much for your report!

Unfortunately, I cannot reproduce the problem. Please check your class list and see if there’s a class that consists of a dot like this: `.` If so, delete it.

Best regards,  
timmse

---

<div class="post-metadata">

**Author:** ![Grey](https://forum.bricksbuilder.io/letter_avatar_proxy/v4/letter/g/b782af/32.png) [@Grey](https://forum.bricksbuilder.io/u/Grey)\
**Post date:** [August 20, 2025, 1:02pm UTC](https://forum.bricksbuilder.io/t/no-bug-custom-css-classes-not-working-on-frontend/34966/3 "2025-08-20T13:02:21Z")

</div>

Hi timmse,

You are right — there was indeed a class consisting of just a dot. After deleting it, everything is now working correctly.

Thanks a lot for pointing that out!

---

<div class="post-metadata">

**Author:** ![alessykora](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/alessykora/32/9351_2.png) [@alessykora](https://forum.bricksbuilder.io/u/alessykora)\
**Post date:** [April 17, 2026, 2:00pm UTC](https://forum.bricksbuilder.io/t/no-bug-custom-css-classes-not-working-on-frontend/34966/4 "2026-04-17T14:00:20Z")

</div>

I have a similiar problem. My classes doesnt work at frontend:

 ![image](https://forum.bricksbuilder.io/uploads/default/original/3X/c/d/cde2fcd6c801a36d742918b68bad428ae7fd0a3e.jpeg)

Fronted class doesn’t have content:

 ![image](https://forum.bricksbuilder.io/uploads/default/original/3X/1/c/1cd4616ec81ab95eb751561bad6e7fbf73b85de4.png)

Did you encountered this? BricksVersion: 2.3.2

@timmse any ideas? It only works when ID is styled, not a class. I tried disabling all plugins etc. No change.

---

<div class="post-metadata">

**Author:** ![alessykora](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/alessykora/32/9351_2.png) [@alessykora](https://forum.bricksbuilder.io/u/alessykora)\
**Post date:** [April 17, 2026, 2:36pm UTC](https://forum.bricksbuilder.io/t/no-bug-custom-css-classes-not-working-on-frontend/34966/5 "2026-04-17T14:36:56Z")

</div>

Found it - numbers in classes made class non working at frontend. Please, take a look at this guys. @timmse

---

<div class="post-metadata">

**Author:** ![aljazbz](https://forum.bricksbuilder.io/letter_avatar_proxy/v4/letter/a/f19dbf/32.png) [@aljazbz](https://forum.bricksbuilder.io/u/aljazbz)\
**Post date:** [April 18, 2026, 10:27am UTC](https://forum.bricksbuilder.io/t/no-bug-custom-css-classes-not-working-on-frontend/34966/6 "2026-04-18T10:27:40Z")

</div>

In CSS, a class name cannot start with a number.

---

<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:** [April 20, 2026, 5:20am UTC](https://forum.bricksbuilder.io/t/no-bug-custom-css-classes-not-working-on-frontend/34966/7 "2026-04-20T05:20:16Z")

</div>

Yep, that’s right 👍
