wonmew
(Eric)
27. Dezember 2019 um 17:37
1
Ich möchte ein Banner auf meiner Startseite hinzufügen, jedoch nicht über das Banner-Thema, da ich ein Hintergrundbild, Text oder einen Button einfügen möchte.
A very common situation you’ll find yourself in as a theme developer is the need to create content that only shows on the homepage of your community.
You might add some HTML to the “After Header” section of your theme, which will then appear on every page. You can jump through some hoops in CSS to hide this everywhere except the homepage… but instead let’s use a Discourse theme to create a component with content that is only visible on your homepage.
If you’re unfamiliar with Discourse themes …
Ich habe diesem Thema gefolgt, den ersten Teil des Codes in meinen <head> eingefügt und den Rest im Reiter „Nach Header
hawm
(Hawm)
27. Dezember 2019 um 18:10
2
Ja, du hast vielleicht etwas falsch gemacht, aber wir können das nicht wissen, da du keine weiteren Informationen angegeben hast.
wonmew
(Eric)
27. Dezember 2019 um 18:22
3
Das ist der Code, den ich in mein „After Header
dax
(Daniela)
27. Dezember 2019 um 19:20
4
Bitte nutze vor dem Posten die Suchfunktion.
Übrigens bietet auch Versatile Banner die von dir benötigte Funktion.
JimPas
27. Dezember 2019 um 20:57
5
Du kannst dir auch diesen Link ansehen (der im Thema von Daniels Link oben enthalten ist).
Hello,
I have an issue : I want a specific banner on the homepage only.
I saw that it was possible but I don’t find any subject resolving my problem. Maybe, the fact that I’m still in trial is a factor.
Can you help me please ?
cokestroke
(Clement Oke)
8. August 2021 um 13:48
6
All the code goes in the section not in the after header