Missing "edit html&css" and "uploads" button for components

The edit button on the component pages does not appear in one of the Discourse installations. That’s why I can’t edit the styles of the components. What could be the reason for this? Edit: Also “uploads” section is missing.

Discourse version: 2.6.0.beta5

What could be the reason for this?

image

1 Like

We’ve restricted local editing of remote themes:

9 Likes

Thank you for the answer.

What should we do for the next customizations? Should I create my own Github repository for any component and make edits on it? An easier way?

1 Like

Yes you can either fork the Github repository and customize it that way, or if you prefer customizing it with the Discourse admin interface you can create an additional local theme component (so for example you’d have the remote version of custom header links installed from Github, and then you can create a local “custom header links edits” component and add that as well).

If you’re willing to learn a little bit of git, forking is probably the best way to go about it because you get all the benefits of source control and have all the Github features available to merge your changes with upstream updates.

6 Likes

Awesome, i am willing to learn a little bit of git, I will use benefits of source control. Your answers have been very helpful. Thank you.

1 Like

Hi. I was not aware of this change. My site uses a lot of theme components and I did not have the custom CSS I wrote for each one of them, which took me months to figure out. Now all my theme components have no custom CSS and my site looks terrible. Is there any way to retrieve at least the CSS so i can follow the new guidelines? thanks…

You can see something like a change log If you go to Admin > Logs then filter by “change theme” and then viewing the details will show you a diff for each change you made

2 Likes

You can also export the theme to view all the CSS.

5 Likes

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