Grow your CSS skills. Land your dream job.

devloping on wamp …wordpress

  • pab
    # October 5, 2008 at 7:05 pm

    Hi I decided to start developing new projects on my local host using wamp instead of my server .

    and I’m working on some new wordpress themes starting with the new starkers2.6.2 theme and I can’t link my ie6 css file

    I tried every way I know of. and it still wont work

    anyone here work with wamp or the mac equivalent and tried the new starkers?

    # October 5, 2008 at 9:32 pm

    Since you’ve built an IE6 specific style sheet, I assume you have a default one? In which case, can you link to it without issues? If you can, there’s probably something wrong with your syntax. Post the code that you’re using to link to it.

    Also, just another thought- my site runs on wordpress 2.6+ and required that the stylesheet be named styles.css. I really don’t know much about wordpress and how to integrate style sheets with custom names, but having two stylesheets named styles.css obviously won’t work. What’s the name of your ie6 stylesheet?

    # October 6, 2008 at 12:12 am

    Since wordpress uses the full path to the file, you can substitute your site’s url for local host in your conditional statement in your header.php file. When you move it to a production server you can change it from localhost to your real url.

    So if you’re using the starkers theme, you could always use – adjust as needed of course.

    box
    # October 6, 2008 at 6:47 am
    Code:
    < ?php bloginfo('template_url'); ?>

    This will tell wordpress to look in your ‘in use’ template directory.

    So

    Code:
    < ?php bloginfo('template_url'); ?>/style_ie.css

    Would point to the added stylesheet in your current Theme.

    # October 6, 2008 at 6:27 pm

    Or try:

    Code:
    < ?php bloginfo('template_directory'); ?>/yourIECSSFileName.css

    Last I checked they both kinda did the same thing but with all the upgrades it might have changed. template_directory definitely works, as it’s the one I use to direct to any files in my theme like ie stylesheets, js files, images that are in the template and not CSS, etc.

    pab
    # October 7, 2008 at 1:57 am

    Hey guys, thank you all for replying, really appreciate it

    I had already tried all of the above and to no avail, I even tried working on other themes like developing with sandbox instead of starkers for starters and still had issues…

    after using THE GOOGLE

    i found my answer

    testing this on a windows machine with IE 6 and IE 7 installed would you? If so, then a bug related to conditional comments will take over and treat all conditional comments as though the browser is IE 7. So if you’re trying to load the conditional comments in IE 6 or below, it simply will not work for you. You must find a computer that has only IE 6 installed in order to give it a proper test.

    taking from the codex forum

    thanks again for the replies

    here’s the link form the forum

    http://wordpress.org/support/topic/164122

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".