Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • jabecker – This is it!! Thank you!!

    Sorry to take so long to get back, but “real world” kept me busy. This was exactly what I needed. Along the way, I also learned some important stuff about template tags. At first, I wasn’t too sure exactly how to use your information, but here is what I did, and – the important part – is that it worked!

    I needed one style sheet for IE and another for everyone else. IE seems to recognize the code, but the others do not (at least not as well).

    Answer: use default for everyone else and special one for IE.

    Created two css stylesheets and put both in the theme directory:
    default_stylesheet.css
    stylesheet_ie.css

    Modified my style.css (the one that names the theme to be used) so it uses the following to provide the default css:

    @import url (‘default_stylesheet.css’);

    In the Header.php:

    Removed original code: <link rel=“stylesheet” href=“<?php bloginfo(’stylesheet_url’); ?>” type=“text/css” media=“screen” />

    Put your code (see below) into header in its place. The first part calls the default_stylesheet.css (because it uses the ‘stylesheet_url’.) The second part provides the stylesheet to be used if the browser is IE (because it uses ‘stylesheet_directory’ and provides the name of the stylesheet to be used.)

    <!–Provides default stylesheet–>
    <style type=”text/css” media=”screen”>
    @import url( <?php bloginfo(‘stylesheet_url’); ?> );
    </style>

    <!–Provides stylesheet to be used if browser is IE–>
    <!–[if IE]>
    <style type=”text/css” media=”screen”>
    @import url( <?php bloginfo(‘stylesheet_directory’); ?>/stylesheet_ie.css );
    </style>
    <![endif]–>

    Would like to do something similar, but not sure exactly how to do it. Would like to use two CSS stylesheets – one if user has IE, other for any other browser.

    Have found a php function that detects browser and have php if/else statement.
    http://techpatterns.com/downloads/scripts/browser_detection_php_if.txt

    These work fine with a simple “echo” statment, but not sure how to use these (possibly in the style.css file??) to dynamically switch css based on user’s browser.

    Luckily, my template is still in one piece (a miracle with the number of combinations I’ve tried!) but could really use some help with this one.

    Thread Starter gecko765

    (@gecko765)

    OK – I think I’ve solved my problems with the rich text editor in WordPress 2.1.2
    After a little more research, I found the answer these three questions:
    1. How do I activate the rich text editor? The discussion at this url answers that question:
    http://ww.wp.xz.cn/support/topic/108474?replies=5

    2. I see the rich text editor; I can enter a title; I can’t enter any text. The following discussion answers this question:
    http://ww.wp.xz.cn/support/topic/102108?replies=9

    3. I think I want to use a different rich text editor. Here’s a discussion about that:
    http://ww.wp.xz.cn/support/topic/72202 best editor

    Hope this makes somebody’s day better!

    Thread Starter gecko765

    (@gecko765)

    Well, I guess I see now what the code tag is for (spaced my words apart above) Ha! That’s a new one on me!

Viewing 4 replies - 1 through 4 (of 4 total)