• Hi,

    I was wondering if someone might be able to help me please?

    Changing permalinks to a custom setting /%postname%/ has trashed my stylesheet on all but my site’s home page.

    I can view the source and see the reference to the stylesheet, but it’s only working on this one page.

    Is anyone out there able to shed any light on the issue please? FYI, I’m importing the stylesheet rather than linking to it: could this be the problem?

    Cheers,

    Dave

Viewing 4 replies - 1 through 4 (of 4 total)
  • what is the code you use to import your style sheet?

    are you using the absolute file path ( using something like <?php bloginfo('template_url'); ?>/stylesheet.css ) ?

    Thread Starter fireloop

    (@fireloop)

    It’s just:

    <style type=”text/css”>
    <!–
    @import url(“davesbook.css”);
    –>
    </style>

    …nothing fancy!

    try:

    @import url("<?php bloginfo('template_url'); ?>/davesbook.css");

    assuming that your css file is in the wp-content/themes/yourthemename/ folder

    Thread Starter fireloop

    (@fireloop)

    Works!

    Thanks alchymyth!

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

The topic ‘Permalinks broke my stylesheet’ is closed to new replies.