Disable "expand" function on user profiles

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

1 Like

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

Guys, any ideas? Someone help me plz.

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

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

3 Likes

@cpradio @Mittineague But Discourse already has this function. Can someone share it?

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.

2 Likes

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.

.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;
  }
}

10 Likes