• Resolved armyofears

    (@armyofears)


    I have quote a bit of html5 and css3 in my wordpress site. i have get nearly all of it to work right (or close to it) in IE6-IE10.

    I have an ADOBE EDGE PREVIEW animation on all of my pages (not on home).
    In IE8 and below i haven’t figured out how to get it to work could care less about it in those browsers, however i would like to stop the 3 scripts that run it in those browsers to prevent any errors in validation.

    i know this script wont work but i feel i might be on the right path with something like :

    add_action( 'wp_print_scripts', 'my_deregister_javascript', 100 );
    if (ie8 == true) {
    function my_deregister_javascript() {
       if ( is_Page() ) {
    	wp_deregister_script( 'edgejs','edgejquery','edgesymboljquery' );} }}

    Can anyone lead me in the right direction?
    I wouldn’t have made this post if it was something that a google search could pull up.

Viewing 1 replies (of 1 total)
  • Thread Starter armyofears

    (@armyofears)

    Didn’t get a response, so i did this incase anyone is interested.

    in the Theme_actions file(not sure if everyone has this)
    it automatically adds a IE conditional tag

    <!--[if lt IE 9]>
    <![endif]-->

    inside mine had a pngfix.js script (BTW the script that was included does fix the png errors IE has)

    i added this `<script>
    ltie9 = true;
    </script>`

    then in every script i added this at the top
    <script>
    if (ltie9 == false) {
    then at the very end of the script i closed it with }

    works like a charm.

Viewing 1 replies (of 1 total)
  • The topic ‘Disable Scripts in certain browsers’ is closed to new replies.