# How to use user field in hbr file?

**URL:** <https://meta.discourse.org/t/how-to-use-user-field-in-hbr-file/218066>\
**Category:** Development\
**Created:** [February 13, 2022, 11:05pm UTC](https://meta.discourse.org/t/how-to-use-user-field-in-hbr-file/218066 "2022-02-13T23:05:00Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![th21](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/th21/32/211915_2.png) [@th21](https://meta.discourse.org/u/th21)\
**Post date:** [February 13, 2022, 11:05pm UTC](https://meta.discourse.org/t/how-to-use-user-field-in-hbr-file/218066/1 "2022-02-13T23:05:00Z")

</div>

I was trying to let users choose whether show likes on desktop/mobile pages based on

> [@Display replies and likes count in mobile view](https://meta.discourse.org/t/display-replies-and-likes-count-in-mobile-view/203473):
>
> A component to display replies and likes count in mobile view Display likes count in addition to replies count on mobile view Support [Topic List Excerpts Theme Component](https://meta.discourse.org/t/topic-list-excerpts-theme-component/151520) Update: Now support customized icon eyeglassesPreview PREVIEW\_LINKhammer_and_wrenchRepository [https://github.com/notedboi/discourse-mobile-extend-display](https://github.com/notedboi/discourse-mobile-extend-display)questionInstall Guide [How to install a theme or theme component](https://meta.discourse.org/t/how-do-i-install-a-theme-or-theme-component/63682)open_bookNew to Discourse Themes? [Beginner’s guide t…](https://meta.discourse.org/t/beginners-guide-to-using-discourse-themes/91966)

and would like to know how to use user custom filed in a .hbr like this.

> <https://github.com/notedboi/discourse-mobile-extend-display/blob/main/mobile/head_tag.html>

or is it possible to apply conditional css based on the user field?

---

_[View the full topic](https://meta.discourse.org/t/how-to-use-user-field-in-hbr-file/218066)._
