Jump to content

Show rotating ad in header


Mike Gholson

Recommended Posts

Posted

Hi all,

I'm seeking some advice on the latest version of IBP.  I would like to show a rotating banner in the area just below the username (in the top header).  This space is open for my site but I am having a difficult time trying to place it.  I followed the guidance for manually placing ads and have figured out how to edit the global template.  I can get the ad to appear, but, I would like to 'right' justify the ad.  Here's the code I am using, it's only showing the ad in the center:

Quote

             <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="DirectSponsor"}
                </div>
            </header>

My ad is called 'DirectSponsor'

Any advice on how to get this to show up on the right?

One additional question, the ad will stretch the vertical size of the header.  Is there a way to do this without enlarging the header?

Posted
17 hours ago, Jim M said:

The CSS class "ipsPos_right" will allow you to position items to the right. More can be found in our CSS Framework guides: 

Thanks Jim.  I'm not familiar about how to do this, can you tell me how to format the code?

Mike

Archived

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

  • Recently Browsing   0 members

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