Can I add a banner only on my homepage?

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?

1 Like

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

1 Like

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

1 Like

Please, use the search function before posting.

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

4 Likes

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

1 Like