# תוכן כרטיס משתמש דביק - ערכת נושא

**URL:** <https://meta.discourse.org/t/sticky-user-card-contents-theme/159875>\
**Category:** Development\
**Created:** [5 באוגוסט,‏ 2020,‏ 9:13am UTC](https://meta.discourse.org/t/sticky-user-card-contents-theme/159875 "2020-08-05T09:13:23Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Johani](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/johani/32/176920_2.png) [@Johani](https://meta.discourse.org/u/Johani)\
**Post date:** [5 באוגוסט,‏ 2020,‏ 4:24pm UTC](https://meta.discourse.org/t/sticky-user-card-contents-theme/159875/2 "2020-08-05T16:24:56Z")

</div>

Hey Pete. Welcome to Meta 👋

> [@sonicb](#):
>
> Would I be able to package this within the theme?

the short answer is yes. If your changes only affect the front-end, then they can be done in a theme / component.

Can you please elaborate on what you mean by sticky? If you mean that you want it to scroll with the content while remaining in the same position then that would be a CSS change. Also, is the change intended to be included on both desktop and mobile?

> [@sonicb](#):
>
> Am I right in thinking that I will need to overwrite the user-card-contents.js to prevent the call to close the element?

Can you please describe which call you’re are referring to specifically? (as on on click or on scroll etc)

> [@sonicb](#):
>
> with a close button

The markup for the close button would need to be added to the handlebars template for the user card. The logic to handle the action when the button is clicked would need be added to the component `.js` file.

> [@sonicb](#):
>
> need to overwrite the user-card-contents.js

A full override might not be necessary, there are some hooks that you can use to override specific methods in a class. I can share more about that if you describe what you want to do a bit more.

---

_[View the full topic](https://meta.discourse.org/t/sticky-user-card-contents-theme/159875)._
