Changing 'After Header' so that it is just visible on main page

Hello together,
I am new to discourse and I’m not already finished with setting up my forum. For the Introduction I wrote my own code in the “after Header” in Admin -> Costumize -> Edit HTML/CSS, so that it just looks like the Introduction of SmartThings. Now that this is finished, I want that my header is only visible on the main page and not on every page e.g. when I’m in a topic.
Thanks for your help!

You can conditionally hide your custom header via CSS like how I did it in Discourse Branding plugin.

https://github.com/VinkasHQ/discourse-branding/blob/master/assets/stylesheets/branding.scss#L168-L170

Like above you can display header only on topic list (navigation-topics => latest, top, new, etc.,) and categories pages.

7 Likes

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