Hover over every menu on pages with a video or Flash slideshow, in several browsers. Where the menu slides behind, add the wmode setting to the embed code, update old video embeds, and plan to replace Flash.

A menu with its bottom half missing

A buyer at a hardware chain emails a shelving manufacturer to say its Products menu seems broken. On her screen the menu drops open, shows four items, then stops at the edge of the video below it.

The other items are still there, behind the video, where nothing can be clicked. Those product pages cannot be reached from the menu at all.

On the manufacturer's own computers the menu looks fine, which is why the problem went unnoticed for months.

Why the video wins

Flash content, including many slideshows and older video embed codes, is drawn by a browser plugin. Unless told otherwise, the plugin draws in a window of its own, on top of everything else in that spot.

The menu is ordinary page content. However its stacking order is set in the style code, it cannot rise above a plugin that has claimed the top layer for itself.

Browsers handle plugins differently, so a page can be broken in one and fine in another. Without Flash, on an iPad for example, the slideshow does not appear, and neither does the problem.

Spotting it in different browsers

Open the home page and any page with a video or slideshow, then hover over each menu in turn. Do it in:

If the menu disappears in some browsers and not others, the video or slideshow is almost certainly the cause. If it disappears in all of them, look at the style code as well.

What a hidden menu costs

Menus are how most visitors move around a manufacturer's site. When half of one cannot be reached, the products in that half are missing for anyone who starts at the home page.

Visitors rarely report it. They assume the product has been dropped, or that the site has been left to age, and look elsewhere.

The setting that fixes Flash

Flash content has a setting called wmode that tells the plugin how to draw itself. Set to opaque, it lets the page decide what sits in front, so the menu can open over the slideshow.

In older embed code the setting has to appear in two places, because different browsers read different parts of the code. Missing one leaves the problem in some browsers.

Transparent also works and lets the page show through clear areas of the Flash, but it asks more of slower computers, so opaque is usually better.

Old video embeds and new ones

Older video embed codes, copied from a video site a few years ago, load a Flash player and behave like any other Flash. Many sites still carry them.

Newer embed codes load the player in a frame. Where the browser can play the video itself, without Flash, the player sits in the page's normal layers and the menu passes over it.

Where the frame still falls back to Flash, the same setting is needed, added to the video's address inside the embed code.

When it is not Flash

Some slideshows are built with scripts rather than Flash, and the menu can still slide behind them. That is a stacking order problem: the slideshow has been placed on a higher layer than the menu.

The fix is usually a line or two of style code that gives the menu a higher layer than anything below it. Whoever maintains the theme should make it there, where updates will keep it.

Chat boxes, fixed banners and pop-up windows can cover menus in the same way, with the same kind of fix.

A worked example

In Squamish, a school hot lunch provider cooks in a commercial kitchen and delivers to a dozen schools, where parents order and pay online a month at a time.

Its home page opened with a Flash slideshow of the kitchen and the food. Above it, a Menus item dropped down an alphabetical list of the schools, each linking to that school's menu and order form.

Parents at a school near the end of the alphabet emailed to ask why their school had vanished from the site. On their computers the list stopped at the slideshow's edge, with the last five schools hidden behind it.

The slideshow's embed code had no wmode setting. Adding it in both places brought the whole list to the front in every browser that afternoon.

In the weeks that followed, the slideshow was rebuilt without Flash, so it now plays on iPads and phones too, and the list opens over it on every screen.

The page, rather than a plugin, now decides what sits on top, so every school's menu is one click from the home page again.

Checking after every change

Menus grow as products are added. A menu that cleared the video last year can reach it after the next product line goes on the site.

Hover over every menu after adding pages or changing the home page, in at least two browsers. Do the same whenever a video or slideshow is added under a drop-down menu.

Keep a short list of the pages that carry video or slideshows, so the check takes minutes rather than a search through the whole site.

The counter-case

A site with short menus that never reach the video, or with the video placed well below the menu, will never show this problem.

A menu that opens sideways, or a site with no drop-down menus at all, avoids it entirely.

But Flash on the home page has other costs, from iPads that cannot show it to slower phones, so this is often a good reason to replace the slideshow properly rather than patch it.

Bringing the menu to the front

  1. Hover over every menu on pages with video or slideshows.
  2. Check in several browsers, including an older Internet Explorer.
  3. Read the embed code for each video and slideshow.
  4. Add the wmode setting wherever Flash is in use.
  5. Replace old video embeds with the newer frame code.
  6. Give the menu the highest layer in the style code.
  7. Plan to rebuild Flash slideshows so they run everywhere.

Step seven is the lasting fix. The wmode setting is a patch for Flash; a slideshow that no longer needs Flash works on iPads and phones too, and leaves the page in charge of what sits in front.

New embed code pasted into a WordPress page brings trouble of its own, described in embed code that disappears when the page is saved.


Frequently asked questions

Why does my drop-down menu disappear behind a video?

Older video embeds and Flash slideshows are drawn by a plugin in a window of its own, above the rest of the page, so the menu's lower part is hidden.

Why does the menu work in one browser but not another?

Each browser handles plugins differently, and computers without Flash do not show the slideshow at all. Check the page in several browsers and on an iPad.

What setting fixes it?

The wmode setting in the Flash embed code. Set to opaque, it lets the page's own layers, including the menu, sit in front of the Flash content.

Do newer video embeds have the same problem?

Less often. They load the player in a frame, and where the browser plays the video itself the menu passes over it. Where Flash is still used, add wmode.

What if the slideshow is not Flash?

Then the cause is usually the stacking order in the style code. Giving the menu a higher layer than the slideshow fixes it, ideally in the theme itself.

Should we replace a Flash slideshow?

When you can, yes. Flash does not run on iPads or iPhones, and a slideshow built with the page's own code shows on every device.

West Coast Media Solutions Inc. provides web design, web development, hosting, digital marketing, and business consulting to organisations across Canada, drawing on more than twenty-five years in the field.

Menu items hiding behind a video?

Send us your home page address, and we will find what covers the menu and fix the embed code properly.

Start a Conversation