[resolved] [Theme: Esplanade] Hijacking Ad Injection Top Ad Alignment (5 posts)

  1. spotanime
    Posted 3 years ago #

    For some reason, something is hijacking my post top ad alignment.

    When I load the page I can see it start out as centered but then get top-left aligned within the div.

    You can see this when you load the following page:


    I can't see what's causing this in Chrome, and I'm unable to see if it's picking up any inherited CSS to cause this.

    Thoughts? Thanks in advance.

  2. WPyogi
    Forum Moderator
    Posted 3 years ago #

    In Firefox, it looks to be in the lower right side of your header space. Is that what you want?

    Try using Firebug to see what's going on with the CSS. Also perhaps validate your HTML and CSS in case errors may be a factor.


  3. spotanime
    Posted 3 years ago #

    No, that's the leaderboard ad. I'm referring to what Ad Injection calls the top ad, which is the ad below the post title.

    I'm using Chrome, but I've also tested in IE. I've played around with the debugging tools in Chrome to no avail. Anyone recommend any other Chrome-based tools?

  4. WPyogi
    Forum Moderator
    Posted 3 years ago #

    Chrome developer tools should do the same thing -- looks like this inline CSS is setting the alignment:

    .fluid-width-video-wrapper iframe, .fluid-width-video-wrapper object, .fluid-width-video-wrapper embed {
        height: 100%;
        left: 0;
        position: absolute;
        top: 0;
        width: 100%;

    You can probably use .fluid-width-video-wrapper in your CSS to move it to the right.

    BTW, not sure if you added them, but you should avoid using <center> tags -- as they are deprecated.

  5. spotanime
    Posted 3 years ago #

    I think that's it - I believe there's some CSS that formats rich content within the post, so anything I post in that div gets automatically converted. If I change the attributes for the attributes you mentioned, it affects the content like videos and embedded tweets.

    I'll alert the theme developer. Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic