# Disable "expand" function on user profiles

**URL:** https://meta.discourse.org/t/disable-expand-function-on-user-profiles/78494
**Category:** UX
**Created:** [January 19, 2018, 5:54pm UTC](https://meta.discourse.org/t/disable-expand-function-on-user-profiles/78494 "2018-01-19T17:54:30Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![Denis\_Frosty\_Andreyc](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/denis_frosty_andreyc/32/87114_2.png) [@Denis\_Frosty\_Andreyc](https://meta.discourse.org/u/Denis_Frosty_Andreyc)
#### Post date: [January 19, 2018, 5:54pm UTC](https://meta.discourse.org/t/disable-expand-function-on-user-profiles/78494/1 "2018-01-19T17:54:30Z")

</div>

I want to open the profile permanently expanded and remove the “expand” button. How can I do this?

 ![Снимок экрана (597)](https://global.discourse-cdn.com/meta/original/3X/5/c/5c4271877a60d4e6fb553ed9ebae34c2945ab50e.jpg)

---

<div class="post-metadata">

### Author: ![nixie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nixie/32/82174_2.png) [@nixie](https://meta.discourse.org/u/nixie)
#### Post date: [January 19, 2018, 5:57pm UTC](https://meta.discourse.org/t/disable-expand-function-on-user-profiles/78494/2 "2018-01-19T17:57:03Z")

</div>

This is something which I wanted to do for a long time now. Even I’m interested in knowing this.

---

<div class="post-metadata">

### Author: ![Denis\_Frosty\_Andreyc](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/denis_frosty_andreyc/32/87114_2.png) [@Denis\_Frosty\_Andreyc](https://meta.discourse.org/u/Denis_Frosty_Andreyc)
#### Post date: [January 19, 2018, 7:02pm UTC](https://meta.discourse.org/t/disable-expand-function-on-user-profiles/78494/3 "2018-01-19T19:02:15Z")

</div>

Guys, any ideas? Someone help me plz.

---

<div class="post-metadata">

### Author: ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)
#### Post date: [January 19, 2018, 7:06pm UTC](https://meta.discourse.org/t/disable-expand-function-on-user-profiles/78494/4 "2018-01-19T19:06:39Z")

</div>

I think you’ll need to write JavaScript to give the element a click event.

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [January 19, 2018, 7:07pm UTC](https://meta.discourse.org/t/disable-expand-function-on-user-profiles/78494/5 "2018-01-19T19:07:38Z")

</div>

Or a plugin that overrides that template/controller/component so it doesn’t default to “collapsed-info”

---

<div class="post-metadata">

### Author: ![Denis\_Frosty\_Andreyc](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/denis_frosty_andreyc/32/87114_2.png) [@Denis\_Frosty\_Andreyc](https://meta.discourse.org/u/Denis_Frosty_Andreyc)
#### Post date: [January 19, 2018, 7:12pm UTC](https://meta.discourse.org/t/disable-expand-function-on-user-profiles/78494/6 "2018-01-19T19:12:29Z")

</div>

@cpradio @Mittineague But [Discourse](https://meta.discourse.org) already has this function. Can someone share it?

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [January 19, 2018, 7:25pm UTC](https://meta.discourse.org/t/disable-expand-function-on-user-profiles/78494/7 "2018-01-19T19:25:49Z")

</div>

No it doesn’t. It has what you are currently experiencing, with it collapsed and you have to manually expand it. There isn’t an option to default to expanding it.

---

<div class="post-metadata">

### Author: ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)
#### Post date: [January 19, 2018, 7:54pm UTC](https://meta.discourse.org/t/disable-expand-function-on-user-profiles/78494/8 "2018-01-19T19:54:22Z")

</div>

You could force some of the hidden information to appear with CSS (background image, bio, etc), but some details are unavailable until expanded (mostly information for staff users).

Adding this CSS to your customization settings will get you some of the way there, but the full functionality you’re looking for would likely need a full plugin.

```SCSS
.user-main .about.collapsed-info {
  .details {
    .primary {
      .avatar {
        width: auto;
        height: 120px;
      }
      h3 {
        display: block;
      }
      .bio {
        display: block;
      }
      h1 {
        font-size: 2em;
      }
    }
  }
  .profile-image {
    height: 420px;
  }
}

```

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [June 8, 2024, 12:43pm UTC](https://meta.discourse.org/t/disable-expand-function-on-user-profiles/78494/9 "2024-06-08T12:43:39Z")

</div>

This topic was automatically closed after 2331 days. New replies are no longer allowed.
