# Newbie help accessing code

**URL:** https://meta.discourse.org/t/newbie-help-accessing-code/135314
**Category:** Support
**Created:** [December 6, 2019, 10:34pm UTC](https://meta.discourse.org/t/newbie-help-accessing-code/135314 "2019-12-06T22:34:59Z")
**Posts on this page:** 1
**Showing post:** 6

<div class="post-metadata">

### Author: ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)
#### Post date: [December 7, 2019, 7:00am UTC](https://meta.discourse.org/t/newbie-help-accessing-code/135314/6 "2019-12-07T07:00:34Z")

</div>

It’s possible to override HBS templates using theme components, which can be done from the admin web interface.

Here’s how to do that: [Developing Discourse Themes & Theme Components](https://meta.discourse.org/t/developer-s-guide-to-discourse-themes/93648#heading--4-b-2)

So in your case you would make a new theme component and enter this into it

```plaintext
<script type="text/x-handlebars" data-template-name="components/user-card-contents">

</script>

```

and then copy the contents of your modified file in between those script tags.

Editing the Discourse files directly is a) not possible on our hosting b) generally not recommended as it will completely break your site when you upgrade. The method above is the way to go - whether you are on our hosting or not!

If you just want to add one user field to the user card, then you might consider using a plugin outlet, which is described [a bit higher up in that same article](https://meta.discourse.org/t/developer-s-guide-to-discourse-themes/93648#heading--4-b-1) and [here](https://meta.discourse.org/t/adding-to-plugin-outlets-using-a-theme/32727). The plugin outlet method requires less changes to the code which will ensure better compatibility when upgrading. It’s a bit less flexible though since it does require an available plugin outlet for your needs.

---

_[View the full topic](https://meta.discourse.org/t/newbie-help-accessing-code/135314)._
