Hulp nodig met theming en logo

AI-generated summary

In a support thread titled “Help needed with theming and logo,” Planktro_Neum asks how to make the site’s top-left logo link to an external website, ideally opening in a new tab. They’re new to admin duties and CSS. pfaffman suggests reviewing Discourse theme guides and mentions that redirecting the home logo externally is unusual but possible, pointing to a GitHub repo for clues. Planktro_Neum clarifies the goal is to make the logo more useful as it represents their community brand. manuel recommends using the “Brand Header” theme component to visibly separate external brand links from the forum, citing meta.discourse.org/t/brand-header-theme-component/77977. Planktro_Neum misunderstands, asking if it’s a hover popup, but manuel clarifies it’s a separate header — and offers a direct solution: a short script to override the logo’s href:

<script type="text/discourse-plugin" version="0.8">
  api.changeWidgetSetting('home-logo', 'href', 'https://example.com');
</script>

He cautions that changing the logo’s destination may confuse users who expect it to return them to the forum homepage.

Hi everyone hope you are well…

I’m currently new to admin status on the website I’m on ( and new to css ), I’m adding new styles, etc but there’s one more thing I’d like to change but I cannot find out how to do it, either I’m looking for the wrong thing, area or using the wrong wording..

basically the logo on the top left of my site, id like it to go to an external link via a new tab or simply just open that link.. Is this possible.. many thanks and apologies if this has been asked before ..

many thanks for any help

Have a look at Developer’s guide to Discourse Themes and Beginner’s guide to using Discourse Themes. But if what you want is for the logo that people expect to go to the home of your forum to instead go to some other web site, it’s a bit more unusual. I think I’ve done it before but can’t quite remember where or how. GitHub - discourse/discourse-custom-header-links · GitHub might provide some hints.

ok thanks for the reply, It would just make the logo more useful seen as it is a community site and the logo is the brand if you get my meaning.

You could also use an existing component to achieve this. Depending on your design it can be more obvious to users that these links will take them away from the forum and to your main brand site.

Like a pop up when you hover over the logo

No, that would add a separate “brand” header to your site.

To link the existing logo to an external site you’d need to modify it with a short script:

<script type="text/discourse-plugin" version="0.8">
  api.changeWidgetSetting('home-logo', 'href', 'https://example.com');
</script>

Though as said, this could be an unexpected action for your users.