Looking into hosting some ads, I am using the official ad plugin which is great in that it allows you to add assets to various points on the site.
However talking to ad agency and it seems to get the best ad visibility on mobile, which most of my traffic is, is by using sticky ads either in the header or footer.
The issue is of course that a sticky ad along the footer will overlay important buttons and impact UX which is a no-no.
Is there a day to pad the bottom of the site up the heights of a banner, so that the sticky banner wouldn’t impact important UX elements? I don’t want users to have to close the banner ad before they can reply or use the post count to scroll down a thread.
Also with the sticky header on Discourse, will that be impacted by a sticky banner or could the banner sit above the discourse navbar?
Or is this something the ad agency should be able to solve with their ad tech?
I’m thinking I can add possibly add some padding to the bottom of the body so that the sticky footer ad banner would not overlay the reply buttons and then on the reply-control box that popups up I might be able to set a z-index so that it comes up over the banner ad?
Just wondering if anyone has successfully implemented sticky header and/or footer banner ads on mobile without impacting user experience.
It’s possible but it depends lot of thing. Can you share your site url?
I would use plugin outlet and put the banner inside. Set the plugin-outlet height equal with banner height, it will add the necessary spaces.
Something like this. Note: This is just a quick example, I hope it will add some idea for you to achieve it. We can do more if you share more info and your site url to check this etc…
Hey @Don - i have a test of that working great on the mobile, just adding it to desktop and it looks like it should work but there’s a slight issue when you hit reply, unlike on the mobile where the stick area disappears, on desktop it stays in place, is there a CSS hook for the composer opening on desktop?
Hi @Don - any idea how to close the footer when on desktop, the mobile version works great but i can’t seem to figure out how to remove the stick element when you open the reply box on the desktop by hitting reply, it’s CSS beyond my skill level.
Sorry for the delay. The code I write above is placed in the mobile section so it only works on mobile. I changed the code to fits on desktop too. You have to place this in common section and remove the existing one from mobile.
Here is the updated which works on desktop and mobile too.
Yeah, i have placed a sticky ad in the footer area Don’s hiding of the sticky area when you are replying means that the ad doesn’t interfere with the usability of the site!