1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Any tips on how to get Google Adsense code in navigation?

Discussion in 'Styling and Customization Questions' started by ArnyVee, Jul 14, 2012.

  1. ArnyVee

    ArnyVee Well-Known Member

    I tried adding some test text within some <li> lines within the navigation tab after the 'what's new' code/line, but didn't seem to work. I want to add some Google Adsense text link ads here....

  2. FredC

    FredC Well-Known Member

    Arny i dont think you will be happy with that placement. Im almost positive it will break the UI on mobile devices. I do pretty well with the same link unit right below the sub nav tabs, above the breadcrumbs.
  3. ArnyVee

    ArnyVee Well-Known Member

    Hmm....you may be right about the mobile. But, maybe I can enable it only on the 'regular' style.

    I was going to have a large banner ad above the forums/below breadcrumbs, so didn't want to overload that area and I was trying to think of another placement for the link ads.
  4. Arty

    Arty Well-Known Member

    It should work fine. Make sure you wrap it in <li>, like this:
    <li><a href="{xen:link 'find-new/threads'}">{xen:phrase whats_new}</a></li>
    <li>adsense code here</li>
    If part of ads will be hidden, remove overflow:hidden; from .navTabs .navTab.selected .tabLinks in navigation.css
  5. FredC

    FredC Well-Known Member

    Hey Arny did you ever implement this? Hows it working for you?
  6. ArnyVee

    ArnyVee Well-Known Member

    I did on a brand new project that hasn't been officially launched yet.

    I think it looks okay. Not perfect, but it works.

    You can see it here as the project is nearing launch next month. www.SouthFloridaSmarts.com
    FredC likes this.
  7. FredC

    FredC Well-Known Member

    Not bad. Fine tuning would be easy since you can easily edit your sub nav tabs to mimic the google adsense.
  8. ArnyVee

    ArnyVee Well-Known Member

    How can I change the font on the sub nav links only?
  9. HenrikHansen

    HenrikHansen Well-Known Member

    I have not much knowledge about this, but I read in a blog (not in English) a couple of weeks ago that Adsense is not happy about ads that looks like menu. You should be quite sure the users can see it is not part of your site menu.
  10. ArnyVee

    ArnyVee Well-Known Member

    Is that right Henrick? Well maybe I should leave it as a different text / font then.
  11. FredC

    FredC Well-Known Member

  12. FredC

    FredC Well-Known Member

    Your probably right about that one.. However its odd that if thats the case they would make the link unit in the first place. As its designed to look like a menu item.
  13. CyclingTribe

    CyclingTribe Well-Known Member

    The risk, of course, is having your account suspended for click fraud if people do mistake them for navigation links and click away expecting in-site content.

    I suppose the key, if you're keeping them in that location, is to differentiate them enough so it's obvious they are Google ad links. (y)
    HenrikHansen likes this.

Share This Page