What is the purpose of the "Convert" button with themes?

Can someone explain what does this “Convert” button do, please? What is it for?

Convert - Convert this component to theme

1 Like

The “Convert” button appears on both theme and component pages. It will allow you to convert a theme to a component or vice versa through the admin interface. Most Discourse admins will never need to use it. Themes and components found at theme already include the correct designation.

This should be covered in our Beginner's guide to using Discourse Themes, but the basic idea is:

  • Themes are considered to be the baseline of your Discourse site’s styling. Often sites offer multiple, user-selectable themes.
  • Components are meant to be added to themes to extend style and/or functionality beyond your basic theme(s).
8 Likes

Great explanation and guide above. I clicked the covert component to theme, unaware of the purpose of the function - is there a way to revert this? Or do you have to delete the component and re-install it?

1 Like

As explained above, the convert button appears on both themes and components. So you just convert the component back to a theme.

2 Likes