Welcome Guest. Sign in or Signup

2 Answers

Disabling zones completely

Asked by: matt 508 views User Questions

I’ve got a certain zone that doesn’t always have an ad, and so I’d like to be able to just disable that zone for a period of time.
In the Zone Settings area you can set the status as disabled, but it still shows the default ad for that ad size. I tried setting that ad size’s default to a transparent pixel, but it sets the 1×1 gif to fill that ad size area and requires a link be specified.

Is there any way, short of removing the JS tag from the site, to just turn off a zone completely from showing anything?

2 Answers



  1. renegade_mike on Jan 14, 2010

    As long as the code is in the page it must display something. Otherwise the browser will display an error message or icon for a missing image. If you do not have any ads from a third-party that you can run as defaults, you could set up a default ad that does not visibly show up on the page.

    To do that, you need to do the following:

    1. Go to Settings > Sizes and edit the size of your zone.
    2. Select Attributes from the Change View drop down.
    3. Enter the URL of a 1×1 transparent pixel .gif file for the Image URL. What you put for the Redirect URL is not important since it will be nearly invisible. I’d suggest just putting in a link to your home page since the field cannot be left blank.
    4. Enter the following in the Alternate HTML Content box:
      <!-- NOT VISIBLE CONTENT -->
    5. Edit the zone code in your page and remove the width=”123″ and height=”123″ attributes from the <IMG> tag. If the zone code contains <IFRAME> tags it will need to be redone completely. Go to the Code Wizard and generate new code without checking the IFRAME option to get non-IFRAME code.

    The end result will be that visitors who have JavaScript enabled will see the Alternate HTML Content, which is an HTML comment that visibly displays nothing. Visitors with JavaScript will see the 1×1 transparent pixel. Short of removing the zone code from your page though, that is the best you can do to hide the zone.

    0 Votes Thumb up 0 Votes Thumb down 0 Votes



  2. matt on Jan 20, 2010

    Alright, that works well enough. Thanks for the quick response.

    0 Votes Thumb up 0 Votes Thumb down 0 Votes