Modification du modèle head_tag.html

While you can add to it - like you’ve already discovered - you can’t modify the existing contents of the <head> tag in a theme because it’s generated based on .erb files and themes don’t have access to that.

discourse/app/views/layouts/application.html.erb at eae22548de4eedad875555e7353b8abfdce2452b · discourse/discourse · GitHub

with a another file that’s loaded as a partial here

discourse/app/views/layouts/_head.html.erb at eae22548de4eedad875555e7353b8abfdce2452b · discourse/discourse · GitHub

It’s possible that there maybe JavaScript workarounds to achieve what you’re trying to do. I might be able to advise if you can give me a simple example of the desired changes.