# User preference on theme components

**URL:** https://meta.discourse.org/t/user-preference-on-theme-components/191268
**Category:** Development
**Created:** [May 22, 2021, 9:14am UTC](https://meta.discourse.org/t/user-preference-on-theme-components/191268 "2021-05-22T09:14:41Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Rhidian](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rhidian/32/176630_2.png) [@Rhidian](https://meta.discourse.org/u/Rhidian)
#### Post date: [May 22, 2021, 9:14am UTC](https://meta.discourse.org/t/user-preference-on-theme-components/191268/1 "2021-05-22T09:14:41Z")

</div>

I have had this suggestion raised on GitHub in relation to one of my theme components.

> Hi.
> 
> (I am just a user of a Discourse forum, not an admin).
> 
> Would it be possible to add an option (a checkbox) in the in the **User \> Preferences \> Interface** window, to enable or disable these \*\*message bubbles" (as an option) ?
> 
> Even if a Discourse forum admin enables this theme component forum wide, it would be nice to be able to enable or disable this option per user, at will.

I’d be grateful for any advice on how to implement user preferences with theme components?

---

<div class="post-metadata">

### Author: ![hawm](https://avatars.discourse-cdn.com/v4/letter/h/f07891/32.png) [@hawm](https://meta.discourse.org/u/hawm)
#### Post date: [May 22, 2021, 6:57pm UTC](https://meta.discourse.org/t/user-preference-on-theme-components/191268/2 "2021-05-22T18:57:13Z")

</div>

Create a Custom User Field then use it in your theme component.

> [@Creating and configuring custom user fields](https://meta.discourse.org/t/how-to-create-and-configure-custom-user-fields/113192):
>
> bookmark This guide explains how to create and configure custom user fields in Discourse, including how to add them to the signup form, user profiles, and user directory. person_raising_hand Required user level: Administrator Custom user fields allow you to collect additional information from your users beyond the standard profile fields. These fields can be displayed on user cards, user summary pages, and even retrieved using the [Data Explorer](https://meta.discourse.org/t/32566?silent=true) plugin. This guide will walk you through th…
