Need the location of the style sheet be a local path rather than a full URL
-
Sorry in advance for the long post, but I need to tell the full story here to explain the problem…
The following style sheet declaration in my header.php file:
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
Is expanded by PHP to the following, as expected:
<link rel="stylesheet" href="https://news.pandesa.com/wp-content/themes/zenful_pandesa/style.css" type="text/css" media="screen" />
I am wondering if there isn’t a way to have the location of the style sheet expand to a standard local directory reference rather than a full URL.
Why, you might ask, would I want to do away with the full URL?
The answer is that I have found that this full URL is slowing down the superfish dropdown menus in IE6. Check out this page in IE6:
Notice how slow and clunky the dropdowns are in IE6? Now check out the following page in IE6:
https://news1.pandesa.com/wp-content/themes/zenful_pandesa/test1.htm
Notice how nice and fast the dropdowns are now? Thats how they are supposed to work.
This latter URL was generated by first doing a “View -> Page Source” and dumping the resulting HTML into a file, which resulted in this:
https://news1.pandesa.com/wp-content/themes/zenful_pandesa/test.htm
Notice that this last page exhibits the exact same slow behavior in IE6. All I did to fix the problem was to replace the style sheet declaration:
<link rel="stylesheet" href="https://news.pandesa.com/wp-content/themes/zenful_pandesa/style.css" type="text/css" media="screen" />
with this:
<link rel="stylesheet" href="style.css" type="text/css" media="screen" />
So, thats why I’m suspecting that the speed issue is related to using the full URL.
I tried to just remove the
bloginfo('stylesheet_url')
, but I can’t seem to make it find my stylesheet.Does anybody have any advice? I’ve been working on this problem on-and-off for weeks!
Thanks!
- The topic ‘Need the location of the style sheet be a local path rather than a full URL’ is closed to new replies.