Jump to content

Home banner on more pages then homepage


exlhost

Recommended Posts

Already found how to add another banner (image)

added this to header.tpl and the location to image in custom.css

<div class="headernew">
  <div class="container">
   
  </div>

the problem is now it show on all pages, but it should not be visible on the hompage
Were to place this code, or hide it from hompage?

Please any help

Link to comment
Share on other sites

3 hours ago, Wallgrind said:

Were to place this code, or hide it from hompage?

wrap it in an {if} statement in header.tpl, e.g

{if $templatefile neq 'homepage' and $templatefile neq 'clientareahome'}
	<img src="https://www.whmcs.com/images/logowhite.png">
{/if}

so this would display the WHMCS logo on every page, apart from homepage (general homepage) and clientareahome (logged in client area homepage)... in your case, just put your <div> code inside the {if} block and it will only appear under the conditions defined in the IF statement.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated