• 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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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 }

    Thread Starter MyersMan

    (@myersman)

    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?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How can I make WP Footer Ad appear only upon entry?’ is closed to new replies.