Jump to content

Banner in Header


Allen Talk

Recommended Posts

Posted

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;
}

 

Posted

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.

Posted

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>

 

Archived

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

  • Recently Browsing   0 members

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