Banner Featured Links

If I’m right, the outlet name should be welcome-banner-below-input. Give it a try and let me know how it goes!
I will update the outlet list later.

2 Likes

That worked perfectly, thank you!

2 Likes

I’ve changed this

import htmlSafe from "discourse/helpers/html-safe";

to

import { trustHTML } from "@ember/template";

Because I noticed for that

For new class ‘Search Banner’ is welcome-banner-below-input

Discourse Banner Featured.zip (15,3,KB)

1 Like

Thanks for reporting! I will update the component asap. :+1:

1 Like

I’ve updated the component and while I was on it, I cleaned up things (DEV: Modernize and clean up by Arkshine · Pull Request #7 · Arkshine/discourse-banner-featured-links · GitHub)

Changelog:

  • Fixed htmlSafe deprecation
  • Fixed a SCSS typo (for mobile, max-width was used instead of margin)
  • Fixed some settings description
  • Replaced alt by title on the link (invalid HTML)
  • Rendered title as plain text.
    It was not documented HTML was allowed, but I don’t think it’s useful in this context.
  • Changed default setting on button hover to use the same color as button.
  • Pinned TC to version 2026.3.0-latest

Internally:

  • Removed version from apiInitializer
  • Updated lint config
  • Adjusted code based on the new lint config
  • Do not mutate settings object
  • Made some cleanup
  • Added more tests.
4 Likes

Quick question: can we also put the buttons in the categories?

Thank you.

Do you mean displaying them on specific categories page? I believe it’s already displaying by default but it depends on Plugin outlet setting.

1 Like

Oh, okay, you need to use the outlet plugin!!

Because currently, it shows up on my homepage, but I want it to appear on all pages.

1 Like

You can use the default outlet above-main-container, it should show on every page.

This will be handy if you’re looking at others place.

2 Likes

I am indeed on the above-main-container parameter, but I only see it on my homepage.

Have you changed `url must contain?

2 Likes

No, I haven’t changed anything, but I just learned something new :rofl:

I’ll give it a try, thanks Arkshine :+1:

1 Like

@Arkshine thanks, that’s perfect :+1:

1 Like