WordPress.org

Ready to get started?Download WordPress

Forums

WP-TopBar
[resolved] Adsense (2 posts)

  1. Oddx
    Member
    Posted 1 year ago #

    Can you insert an adsense test ad in this?

    http://wordpress.org/extend/plugins/wp-topbar/

  2. Bob
    Member
    Plugin Author

    Posted 1 year ago #

    You need to use javascript to inject adsense ads. Right?

    You cannot add javascript to a topbar. You can try to fake it by going to the CSS Tab. In the last box (C. For the entire TopBar). Enter this:

    position:fixed; top: 40; padding:0; margin:0; width: 100%; z-index: 99999; > <script type=\'text/javascript\'>alert(\'hi\');</script

    Note the lack of trailing ">". You must also add slashes to every single quote.

    No guarantees that this will work.

    I did not test it.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.