WordPress.org

Ready to get started?Download WordPress

Forums

Quick Adsense
Possible Bug (6 posts)

  1. dvuksanovich
    Member
    Posted 1 year ago #

    First let me say that I think your plugin is great. I did find what I think is a bug today, though.

    When I manually position the ads, using <!--Ads1--> for example, the paragraph after the manual insertion code gets its beginning <p> tag stripped out.

    The pages where ads are being automatically inserted according to the rules defined in the admin console are working fine. But every one of my pages that uses manual ad positioning has HTML validation errors with missing <p> tags, and every missing <p> tag corresponds to a paragraph after manual ad positioning code was used.

    Thanks in advance for your assistance with this.

    http://wordpress.org/extend/plugins/quick-adsense/

  2. Philip Ze
    Member
    Plugin Author

    Posted 1 year ago #

    Manual ads insertion should not affect the <p>. The plugin only replace the tag with the ads code. Would you mind show me the html extract, where it contents validation error?

  3. dvuksanovich
    Member
    Posted 1 year ago #

    You can check out my home page at http://www.whyisuckatguitar.com. The ads on this page are manually placed. notice that each paragraph after the manually placed ad code does not have a beginning <p> tag.

    Then go look at one of my articles, like http://www.whyisuckatguitar.com/guitar-chords-for-beginners/. This page has the ads automatically placed and the <p> tags are fine.

    Thanks for taking a look.

  4. Philip Ze
    Member
    Plugin Author

    Posted 1 year ago #

    I see ... ok try place the tag with one blank row before the paragraph, as follow:

    <!--Ads1-->
    
    Your Paragraph here ...
  5. dvuksanovich
    Member
    Posted 1 year ago #

    That is not something I want to do because WordPress then inserts extra paragraph tags and my content doesn't look right. The only way the layout is right is if the tag and the content are on the same line.

  6. Philip Ze
    Member
    Plugin Author

    Posted 1 year ago #

    Another work around is to manually place the <p></p> in your 1st paragraph. Anyway, will look into this bugs, likely it's due to the way WordPress generate html tags.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.