Viewing 7 replies - 1 through 7 (of 7 total)
  • Look in index.php, and find this:
    <style type="text/css" media="screen">
    @import url( <?php echo get_settings('siteurl'); ?>/wp-layout.css );
    </style>

    Make that more like this:
    <style type="text/css" media="screen">
    @import url( https://www.example.com/style/wp-layout.css );
    </style>

    Thread Starter metaltiger

    (@metaltiger)

    Podz,

    Cool. I thought that something like this might work.
    a) can I keep my old wp-layout.css in the root
    b) do I make sure that the site url is enclosed in those little ‘ this’ marks

    Thanks I’ll go try it

    a) Yes I’d rename it though, just be sure. “myold.css” maybe

    b) You may need the ‘ or you may not …. it varies I think (and I really out to look that up properly)

    Thread Starter metaltiger

    (@metaltiger)

    There is another line that I am wondering about just below with this:

    <link rel=”stylesheet” type=”text/css” media=”print” href=”<?php echo get_settings(‘siteurl’); ?>/print.css” />

    Do I need to change this also to ‘siteurl’ and remove the “<?php echo get_settings” on this line as well?

    Thank you so much

    Okay. CSS Definitive Guide by Eric Meyer

    Format is
    url(protocol://server/pathname)

    This does NOT work
    url (protocol://server/pathname)
    because of the space.

    You would use ” when you reference another document that has the link to the CSS.

    And the ‘ may or may not have some browser significance.

    (If it works with’em, leave’em, if it don’t, take’em out ?? )

    Leave the CSS line as it is if everything works.

    Thread Starter metaltiger

    (@metaltiger)

    Thank you podz for the look up. I will work on this and let you know how it goes.

    I think that if someone wants to change the wp-layout.css and adding other files for some of these styles, having them all in a subdirectory is best. Adding or changing styles then becomes easy and does not mess up the root directory. For those of us that are not very familiar with which files are added, having them in a subdirecty can save from deleting something vital.

    When I get it to work I will let you know. Thanks again

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Style Sheet Subdirectory help’ is closed to new replies.