WordPress.org

Ready to get started?Download WordPress

Forums

How can I make WP Footer Ad appear only upon entry? (3 posts)

  1. MyersMan
    Member
    Posted 2 years ago #

    I'm trying to hack the php of the WP Footer Ad for my web site here: wyofiletest.com.

    I'd like to be able to adjust the plugin so that it only pops up when the user enters the site, whether through entering a URL or clicking on a link obviously. I'm using a custom theme built off Thesis 1.8.

  2. Simple.

    One of two possible responses:

    1) Send a cookie to the user that tells the server they've already seen the ad, then hide it if they have the cookie on future page loads.

    2) do something like ... if( FALSE !== strpos( get_bloginfo('wpurl'), $_SERVER['HTTP_REFERER'] ) ){ echo banner ad }

  3. MyersMan
    Member
    Posted 2 years ago #

    Good call on the cookie trick, since I don't think the Javascript on this plugin is active.

    But...being the noob that I am... what would the code look like for a cookie that would relay the "already-have-seen-ad" info to the server?

Topic Closed

This topic has been closed to new replies.

About this Topic