• Resolved goldmember

    (@goldmember)


    in the header.php file of my theme, i have the following code to reference an IE 6 stylesheet if the visitor is viewing the site in IE 6:

    <link rel="stylesheet" type="text/css" href="<?php bloginfo('stylesheet_url'); ?>" />
    <!--[if IE 6]>
    <link rel="stylesheet" href="https://www.poolplayersforhire/wp-content/themes/green-theme/ie6_style.css" type="text/css" media="screen" />
    <![endif]-->

    however, it doesnt appear that the stylesheet is being applied. i know this because the only code in the stylesheet is code that should make the background red body {background:red;}, but i dont see that happening when viewing the site in IE6.

    please advise how i get this style sheet to be applied. thanks.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Your URL is missing top level domain, e.g. .com, .net, etc.

    Thread Starter goldmember

    (@goldmember)

    what do you mean? what should this line look like?

    <link rel="stylesheet" href="https://www.poolplayersforhire/wp-content/themes/green-theme/ie6_style.css" type="text/css" media="screen" />

    Moderator cubecolour

    (@numeeja)

    try:

    <link rel="stylesheet" href="<?php get_stylesheet_directory() ?>/ie6_style.css" type="text/css" media="screen" />

    The problem is that you have specified https://www.poolplayersforhire rather than https://www.poolplayersforhire.com

    Thread Starter goldmember

    (@goldmember)

    doesn’t seem to have worked. here’s what i have spelled out now:

    <link rel="stylesheet" type="text/css" href="<?php bloginfo('stylesheet_url'); ?>" />
    <!--[if IE 6]>
    <link rel="stylesheet" href="<?php get_stylesheet_directory() ?>/ie6_style.css" type="text/css" media="screen" />
    <![endif]-->

    please advise. thanks.

    Moderator cubecolour

    (@numeeja)

    OK you can just put in the static link

    <link rel="stylesheet" href="https://www.poolplayersforhire.com/wp-content/themes/green-theme/ie6_style.css" type="text/css" media="screen" />

    (Assuming your domain is a poolplayersforhire.com)

    or for the portable version you can try try:

    <link rel="stylesheet"  type="text/css" media="screen" href="<?php bloginfo('template_directory'); ?>;/ie6_style.css" />

    Thread Starter goldmember

    (@goldmember)

    thanks. this seemed to work:
    <link rel="stylesheet" href="https://www.poolplayersforhire.com/wp-content/themes/green-theme/ie6_style.css" type="text/css" media="screen" />

    now that i’ve got the style sheet applied, any idea how to adjust so that the text in the business postings doesnt start below the bottom of the last picture? for instance, if you look at the homepage in IE6, you’ll see that the text/content of that posting does not start until the end of the 4th picture, event though the text wraps to the left of the pictures in all other IE versions.

    please advise. thanks.

    Thread Starter goldmember

    (@goldmember)

    nevermind, i’ll close this thread and start anew.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘IE6 stylesheet not being applied’ is closed to new replies.