Site logo

[Resolved] How to add Google Adsense under (and keep it under) the sticky menu

Home Forums Support [Resolved] How to add Google Adsense under (and keep it under) the sticky menu

Home Forums Support How to add Google Adsense under (and keep it under) the sticky menu

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #177120
    Pete

    Hi Tom I like the sticky menu. I’d like to to use this stickyness feature to place an Adsense script either above or below the menu so that it Adsense stays sticky along with the menu. Could I use another piece of sticky code or should I incorporate the Adsense into the menu sticky code?

    Thanks

    • This topic was modified 10 years, 1 month ago by Pete.
    #177126
    Pete

    Don’t worry, apparently it’s against Google’s policy to have floating ads.

    #177151
    Tom
    Lead Developer
    Lead Developer

    Interesting, I didn’t know that.

    For other ads, you could always use this plugin I think: https://en-ca.wordpress.org/plugins/sticky-menu-or-anything-on-scroll/

    #177153
    Pete

    Thanks Tom what file would I look in to play with the GP sticky menu?

    #177154
    Tom
    Lead Developer
    Lead Developer

    Things would get a little too messy in there seeing as it’s meant to work with the menu and that’s it.

    Depending on if you want the no effect or one of the effect sticky functions, you would look at advanced-sticky.js and sticky.js.

    #177155
    Pete

    I’ll keep my hands clean 🙂

    #177156
    Pete

    Thanks for the plugin recommendation, works great.

    #177157
    Tom
    Lead Developer
    Lead Developer

    No problem 🙂

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.