Riccardo
Riccardo

Reputation: 29

HTML5shiv not working on IE 8

I'm trying to make "UberMenu" plugin for Wordpress compatible with Internet Explorer 8 by following this tutorial

I tried to use HTML shim and element instead of too but my menu still shows as an unordered, unstyled list on IE8.

My website: Cicero gestionale studio legale

!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->

<!--[if lt IE 9]>

<script src="https://www.versari.it/wp-content/themes/maximus/css/html5shiv.js"></script>

<![endif]-->

Can you gently help me? Thanks in advance

Upvotes: 0

Views: 407

Answers (1)

iolibitz
iolibitz

Reputation: 442

First of all, your question does seem like a possible duplicate, as suggested in the comments, so I think you should check the other answers first.

Recently, I encountered a similar problem while designing a navigation menu for my website. The menu just won't style in IE 8 with HTML5shiv. What worked for me is just adding a <body> tag to the main HTML and then it displayed fine.

So I suggest:

  1. Check to see if you have <body> and </body> tags enclosing your code.
  2. See if there is a <!DOCTYPE html> declaration at the first line.
  3. Make sure your HTML5shiv script element is at the head section.

Also, the !-- Le HTML5 shim, for IE6-8 support of HTML5 elements --> of your code needs to include an open bracket at the beginning: <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->

Upvotes: 0

Related Questions