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

  1. MyersMan
    Posted 4 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. George Stephanis
    Code Monkey
    Posted 4 years ago #


    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
    Posted 4 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