Jump to content

Banner in Header

Featured Replies

Posted

How do you place a banner script/app in the forum header? I use the cloud hosting theme.

I am new to this and not smart at all.

Thanks.

 

Edited by Fairview Talk
update

If you mean an image in header, add the below code to your theme's custom.css

ACP  >  Customization  >  Themes  >  Default theme or other theme  >  Edit HTML and CSS  >  CSS Tab  >  core  >  front  >  custom  >  custom.css

#ipsLayout_header header {
   background: url(image_link) no-repeat center center fixed;
   -webkit-background-size: cover;
   -moz-background-size: cover;
   -o-background-size: cover;
   background-size: cover;
}

 

  • Author

What I am trying to accomplish is placing a Banner javascript in the header for advertisement purposes. I have no clue on how to do this. I was hoping there was another way besides editing the .css. Is there a plugin or something easier.

Plus I am on the Cloud hosting plan.

And then add the advertisement tag in globalTemplate

<header>
	<div class='ipsLayout_container'>
		{template="logo" app="core" group="global" params=""}
		{{if !in_array('ipsLayout_minimal', \IPS\Output::i()->bodyClasses )}}{template="userBar" app="core" group="global" params=""}{{endif}}
		{advertisement="KEY"}
	</div>
</header>

 

  • Author

Thank you kindly.

I am starting to get a grip on this.

Archived

This topic is now archived and is closed to further replies.

Recently Browsing 0

  • No registered users viewing this page.