• Hehe, here goes.
    I run a multi-user blog at the moment, and one of the users (specificaly THE other user) uses Netscape 4.
    NO, he can’t upgrade, so we’ll leave that out of the question for now.
    I simply would like to detect his browser and show him the page without any CSS whatsoever. I know this is possible, and have done it before on other projects, but the header.php inside of the default theme folder seems to import the stylesheet in an odd way.

    Precisely what i would like to do is this:
    <style type=”text/css”>@import url(cssfile.css);</style>

    the import tricks netscape to ignore the CSS completely.
    the problem is this line of code:
    <style type=”text/css”>@import url(<?php bloginfo(‘stylesheet_url’); ?>);</style>

    Which looks like it would do the trick, but doesn’t seem to at all.

    Any advice?

    And I really don’t care to hear anyone talking about other browsers, some people on the web do still use older browsers, some even use lynx or links. That’s just the way it is.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Try:

    @import "<?php bloginfo('stylesheet_url'); ?>";

    Netscape 4 (and IE 4) should fail to recognise this.

    Thread Starter yottabite

    (@yottabite)

    that’s what i figured, but do you mind letting me know specifically on which line? ( i appreciate this)

    i’ve got :

    <link rel=”stylesheet” href=”<?php bloginfo(‘stylesheet_url’); ?>” type=”text/css” media=”screen” />

    on line 20

    Thread Starter yottabite

    (@yottabite)

    bahahhaha, it occurs to me i don’t even know where the stylesheet is called, lemme try and find out with a quick RTFM.

    Thread Starter yottabite

    (@yottabite)

    still no go – can’t seem to find explicitreferences to stylesheet in anything but the header.php within the theme.
    Am I even in the right place?

    yes, you are!

    just rename the style sheet, call it whatever but not style.css or the layout if thats what your site calls for, it will not display the style sheet if it is not correctly named rename it back when they have seen it

    Thread Starter yottabite

    (@yottabite)

    Sorry dawg – I need a permanent fix. Basically I need to hide the stylesheet only from Netscape 4 users. The only problem that I see is the specific syntax WP use when including it. Typically an @import statement will work, but doesn’t seem to in this case.

    Oh I thought you were just trying to show the one Netscape 4 user how it looks with out styles, thats why I said change it back afterwards.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Netscape 4 Compatibility’ is closed to new replies.