• Resolved wampdog29

    (@wampdog29)


    First off, great plugin! Works perfectly except for one issue I have been having.

    Using the widget messes up any widget below it as well as the footer. The footer is pushed to the left side of the screen as seen here.

    This is kind of odd however because I am also using the widget in the center of the homepage and it works fine. I have been using the widget in the sidebars of pages at the very bottom under all other widgets just so they aren’t messed up, but the footer has been. I finally decided to add some footer widgets and completely forgot about the footer issues with this Ad Injection widget. No, my footer widgets are pushed/floating to the left of the screen. Any ideas?

    I’m sure it’s a theme problem, but has anyone else ever seen this issue before and know of a fix? Possibly a misplaced div tag? I cannot find the issue digging through hours of code.

    Thanks ahead of time for any help!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi wampdog29, Firebug is a good debugging tool for cases like this. I don’t think this is anything to do with Ad Injection, it is your theme.

    On your front page the footer-widgets div is inside the page-wrapper div. On your linked page above it isn’t. Therefore on your linked page the footer floats to the very left, instead of to the left of the page-wrapper.

    Hope this helps.

    Thread Starter wampdog29

    (@wampdog29)

    Yes, I definitely should try Firebug out more often than I do, however, this didn’t help. I believe I saw this before and it looks good on paper from how you explained it. Having footer widgets in the content wrapper on one page but not another would seem like that would be the issue, but it’s not.

    After placing an Ad Injection widget on the homepage right sidebar, it produced the same thing as in the link on the other page(s).

    It has something to do with the sidebar itself because as I stated before, the widgets below it on the sidebar will be messed up and misconfigured and the CSS jumbled up.

    I understand it’s a theme issue, but why is it ONLY Ad Injection (so far that I have found) that does this to it? It’s almost as if there is a missing div tag at the end of the ad injection widget or something. I know though, that it’s the theme, but that’s just what it seems like.

    Thanks for your help. I’ll leave this thread open until either I find an answer using Firebug, or someone else who has encountered this problem can let me know a fix.

    Hi wampdog29, Ad Injection does not insert any layout altering tags into the widget area (e.g. divs) – unless you set the alignment options. Any such tags are inserted by the WordPress widget code – and will be the same for all widgets.

    All Ad Injection does is to insert the code you have put into the box into the widget area that WordPress has set up for it.

    If an ad you’ve inserted using it affects the layout I believe this will just be because of the size of the item you are inserting into the widget area.

    I tried moving your footer into the content-wrapper div, and that fixed the layout of the page you linked (before I said page-wrapper – maybe I should have said content-wrapper).

    I guess the best fix would be to alter your theme to make it less fragile to content that goes in the sidebar.

    Thread Starter wampdog29

    (@wampdog29)

    Wholly crap! It’s always the easiest things that get you (or me in this situation).

    All I had to do was bring the content wrapper end <div> tag down and place it after the footer and that resolved it. As you said, the footer maybe needs to be in the content-wrapper.

    I’m still a bit confused though because I have always made themes and seen them with the footer and header outside of the content wrapper.

    Hopefully this doesn’t cause other problems elsewhere, but looks good so far.

    Thanks for the help!

    Thread Starter wampdog29

    (@wampdog29)

    OKay! I also fixed the problem with Ad Injection messing up widgets underneath it in the same sidebar. No, it wasn’t the same issue. What it was…. and you’ll love this one… was a simple as NOT having a title for the widget…. yeah…. amazing. I usually just place an ad in the sidebar without a title and finally realized that because there was no title, there was no background image holding the ad injection widget/ad. So, I tried giving it a title of “Advertisement” and voila, the widget underneath is fine and everything is fixed! Hope this helps anyone else that had this issue.

    RESOLVED!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: Ad Injection] Widget/Sidebar Problems’ is closed to new replies.