Site logo

Archived topic

Display ads on Container Wrapper

7 replies · Started by Nam on August 21, 2020

Viewing posts 1–8 of 8

Hi there,

I think using the wrapper is a good idea.

Then, you can try this as long as the ad container is inside the wrapper:

.site-wrapper {
    position: relative;
}

.your-ad-container {
    position: absolute;
    top: 0;
    left: -200px; /* width of ad */
}

Let me know :)

Hi Tom,
I did what you told. But my ad-container keeps getting display: none even i set it
.my-ad-container {
position: absolute;
top: 0;
left: -200px; /* width of ad */
}
Picture
1. https://drive.google.com/file/d/1WkDUI4Q6-3nWAZ1R_4Wee7hMf7unT5Oz/view?usp=sharing
2. https://drive.google.com/file/d/1LsPGVN3MI62GKDR7eJxyD3pp-6CLB_6Z/view?usp=sharing

I try adding display: block (or inline-block) !important; to .my-ad-container but i't not working either.

There must be some javascript on the page doing that.

You could display: block !important it in the CSS.

I have already tried display: block !important.
I gonna take a look at the javascript.
Thank you Tom.

No problem - something is targeting that element and hiding it. Best to deactivate things one by one until you find the culprit.

Hi Tom - any chance you can help walk me through how to do this too? I followed the instructions on the Container Wrapper page, but my ad (using adrotate pro and Background Takeover plugins) is still not displaying on my homepage. Currently working in a staging site, so you can't view it, but our live site is what I'm trying to accomplish as far as the background ad (localemagazine.com)
Thank you!

Hi there,

might be best to raise a new topic - and is it possible to see the staging site with ad plugins enabled? so we can see what they are doing ?

This archived topic is closed to new replies.