Custom Topic Button

:information_source: Deprecated: There is now a theme-component that provides the same feature: Topic Footer Buttons

Summary: This plugin adds a custom button at the bottom of a topic, visible to everyone (who is logged in).

:link: GitHub:
:arrow_right: Install: Follow the plugin installation guide.



From Admin > Site Settings > Plugin, modify

  • custom_topic_button_url
  • custom_topic_button_title
  • custom_topic_button_label

Note: For button to be visible only to staff or members of a specific group, see:




when I click on the button it opens a link on another page, how do I click on the button and it opens on the same page?

1 Like

I’m not sure, but I believe there are a couple of official theme components that are the up-to-date method of acheiving this. Topic Footer Buttons

Do they behave in a similar way?

I installed them, but both open the link in another window, is there any way for it to open in the same window?

Hmmm. :thinking: If I’m reading it right, I think it’s part of the theme component code that it opens in a new window:

(and the plugins too I think)

discourse-custom-topic-button/custom-public-button.js.es6 at c4a91727c0322f0c59bc09af7fbcb076b5676de4 · techAPJ/discourse-custom-topic-button · GitHub

It does not seem that there’s currently a way through the UI to change that. It may be possible to amend that behaviour with a bit of custom work, but I’m afraid that’s not my forte. :slight_smile:

1 Like

Hi koliwi, I’ll try to have a look at the theme component to add this feature this week. :slight_smile:


Is this plugin yours? Congratulations for the work, I really liked it! If you can open it in the same window it will be even better! Thanks!

It’s not mine, but I can have a look at it nonetheless. I’ll let you know :slight_smile:

1 Like