可以在表情符号选择器中优先显示自定义表情符号吗?

I’ve added custom emojis, but I notice they’re the very last option available when the emoji selector is activated. This can lead to confusion on the end user’s end if they’re not familiar. Ideally, I’d like for them to appear first since they’re the set users would primarily use. For example:

1 个赞

A minor CSS change you can make within a theme is to prioritize the tabs on the left to put the custom group tab first… this looks like:

.emoji-picker__sections-nav [data-section="default"] {
  order: -1;
}

(“default” being the emoji group name as seen in /admin/config/emoji)

So that makes it easier to click the button on the left to jump to the custom emoji.

Beyond this, there’s not a great way to adjust the ordering of the sections themselves at the moment.

The emoji in the menu are lazy loaded on scroll, so even if you adjust the content ordering with CSS… the custom emoji wouldn’t be loaded when the menu is first opened.

We could potentially add a hook to customize the order in a theme if it’s something more people would generally find useful.

1 个赞

Huuuuuge thanks! I feel silly now :sleepy_face: