• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Adsense Unit Messed Up My Sidebar – Metro Theme

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Adsense Unit Messed Up My Sidebar – Metro Theme

This topic is: resolved

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.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • May 1, 2015 at 8:50 am #149720
    gabrielgmoura
    Member

    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):

    The Unit that Broke the Page

    For comparison, this is how my sidebar looks like on all other posts and pages:

    Correct Sidebar Configuration and Placement

    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:

    Issue Persists

    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.

    Gabriel

    http://www.elementsofcinema.com/
    May 2, 2015 at 8:58 am #149816
    Davinder Singh Kainth
    Member

    Adsense unit is appearing fine. Got that working now?


    Sunshine PRO genesis theme
    Need Genesis help? Davinder @ iGuiding Media | My Blog | Fresh Genesis Themes

    May 2, 2015 at 11:30 am #149839
    Tom
    Participant

    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 #149864
    gabrielgmoura
    Member

    Hi Tom,

    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.

    Best,
    Gabriel

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2023 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble