Can I add a banner only on my homepage?

סיכום מבוסס בינה מלאכותית

The user wonmew asks how to add a custom banner exclusively on the homepage, using HTML and JavaScript, and mentions trying code in the </head> and After Header sections without success. hawm notes the need for more details, while dax suggests checking existing solutions like the versatile-banner and the homepage-specific design guide. cokestroke clarifies that the code should be placed in the </head> section, not the After Header, indicating a likely source of the issue.

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).

All the code goes in the section not in the after header