Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
Mike Gholson Posted January 4, 2019 Posted January 4, 2019 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?
Jim M Posted January 4, 2019 Posted January 4, 2019 The CSS class "ipsPos_right" will allow you to position items to the right. More can be found in our CSS Framework guides:
Mike Gholson Posted January 5, 2019 Author Posted January 5, 2019 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
Recommended Posts
Archived
This topic is now archived and is closed to further replies.