Community Forums › Forums › Archived Forums › Design Tips and Tricks › Adsense Unit Messed Up My Sidebar – Metro Theme
Tagged: Ad Implementation, Adsense Unit, error, genesis, Google Adsense, Metro theme., Sidebar, Sidebar shifts down, Studiopress
- This topic has 3 replies, 3 voices, and was last updated 7 years, 10 months ago by gabrielgmoura.
May 1, 2015 at 8:50 am #149720gabrielgmouraMember
Hi SP Community,
I need some of your design and code wisdom to help me with an issue.
Here's what happened: I was implementing a text-wrapped Adsense unit to my blog. This was an experiment: I was adding the unit to my post, and I mean literally pasting the code straight into post section of WordPress. After inserting the code and checking the page, I saw that my sidebar (which I thought was in a completely different realm from the post) had shifted all the way down. Here's how it looked above the fold (notice that the sidebar is not visible):
For comparison, this is how my sidebar looks like on all other posts and pages:
Obviously the sidebar is more important than the Adsense unit, so I proceeded to delete the code hoping that I would restore the sidebar. However, even without the code, the sidebar is still off:
Note that this issue is only happening on that one page of my blog, which is weird because I thought the Metro Theme or Genesis Architecture would make all pages consistent, so how can one addition to the post section mess up the sidebar?
If it's relevant, the snippet I used to wrap the adsense with text was: <div style="float:right;"> And yes, I did do Text View to make sure I deleted any residue of the code from the post.
Thank you in advance for all your assistance.
Gabrielhttp://www.elementsofcinema.com/May 2, 2015 at 8:58 am #149816Davinder Singh KainthMember
Adsense unit is appearing fine. Got that working now?
Sunshine PRO genesis theme
Need Genesis help? Davinder @ iGuiding Media | My Blog | Fresh Genesis ThemesMay 2, 2015 at 11:30 am #149839TomParticipant
I think that page is still way b0rked.
When validated at
http://validator.w3.org/it shows broken HTML with at least one extra
</div>and duplicate IDs from the Zedity editor that was/is used on this page. I think the adsense code deletion may have included some extra characters or maybe too few, and/or Zedity is playing havoc. The HTML has many improperly formed BR tags and seems to be filled with carriage returns. Chrome claims "The "fb-root" div has not been created, auto-creating".
This validator clearly illustrates the page errors
In any case, I think @gabrielgmoura should rebuild the page entirely. Much can be carefully copy-pasted using raw, unformatted text so it shouldn't be much bother and can use the same URL. If that doesn't work, try it without the Zedity pluigin.
Choose your next site design from over 350 Genesis themes.
[ Follow me: Twitter ] [ Follow Themes: Twitter ] [ My Favourite Webhost ]May 2, 2015 at 4:51 pm #149864gabrielgmouraMember
Thank you so much for your feedback and suggestions. You were right: there was an extra </div> tag lost in there. I got it fixed now.
I really appreciate your help.
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.