Puis-je ajouter une bannière uniquement sur ma page d'accueil ?

I want to add a banner on my homepage, not by using the banner topic , because I want to add background image, text, or button.

I followed this topic tried put the first part code into my </head> then add the rest part to After Header tab, but there is not effect. am I doing something wrong? can I add a customer banner or 2 banners just on my homepage?

Yes, you may do something wrong but we cant know that because you didnt show any additional info.

this is the code I added in my After Header

<script type="text/x-handlebars" data-template-name="/connectors/below-site-header/custom- 
homepage">
   {{#if displayCustomHomepage}} 
    <div class="custom-homepage-wrapper wrap">
  
   
       <h1>I am John Doe</h1>
       <p>And I'm a Photographer</p>
  
    </div>
  </div>
   
   
   </div>
   {{/if}}
  </script>

if I just add <h1>I am John Doe</h1> <p>And I'm a Photographer</p>
it shows on the top, but not just homepage, it shows every page

Please, use the search function before posting.

Incidentally, the Versatile Banner has also the function you need.

You can also check out this link (which is contained in the topic of Daniela’s link above).

Tout le code doit être placé dans la section et non après l’en-tête.