How to add a new button inside quick-access-profile?

Hello !

Is it possible to add a new link on this section :

It would be between “preference” and “notifications”. By either editing my theme or adding a new plugin.

Thank you !

Hello! Welcome back. :slight_smile:

You have an API function addQuickAccessProfileItem where it can insert an item before the logout button.

For example:

<script type="text/discourse-plugin" version="0.8">
  icon: "pencil-alt",
  href: "/somewhere",
  content: "Test"

The image shows a computer user interface with a dropdown menu that includes options such as Summary, Activity, Invites, Drafts, Preferences, Pause notifications, Test, and Log Out. (Captioned by AI)

Then you can use CSS to reorder the items (that not ideal, but not much choice)

.user-menu {
    .summary { order: 1 }
    .activity { order: 2 }
    .invites { order: 3 }
    .drafts { order: 4 }
    .preferences { order: 5 }
    /* yours here */
    .test { order: 6 }
    .do-not-disturb { order: 7 }
    .logout { order: 8 }


Hope that helps. :+1:


Thank you very much !

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.