Allen Talk Posted September 14, 2018 Posted September 14, 2018 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.
Ioannis D Posted September 14, 2018 Posted September 14, 2018 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; }
Allen Talk Posted September 14, 2018 Author Posted September 14, 2018 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.
Ioannis D Posted September 15, 2018 Posted September 15, 2018 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>
Allen Talk Posted September 17, 2018 Author Posted September 17, 2018 Thank you kindly. I am starting to get a grip on this.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.