WordPress.org

Support

Support » How-To and Troubleshooting » Stylesheet and site url problem

Stylesheet and site url problem

  • First time install of WP yesterday. Today I was editing my options (site address and uri), trying to get the url out of the browser title bar basically, and ended up screwing something up. My content is still there, but the stylesheet is not getting called. I tried replacing the index with the original file, but that made no difference. Before I mess things up worse, I thought I’d see if there were a quick fix. Otherwise I guess I’ll have to reinstall.
    Here’s the head stuff I think is relevant:
    <meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats -->
    <style type="text/css" media="screen">
    @import url( <?php echo get_settings('siteurl'); ?>/wp-layout.css );
    </style>
    <link rel="stylesheet" type="text/css" media="print" href="<?php echo get_settings('siteurl'); ?>/print.css" />
    <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo('rss2_url'); ?>" />
    <link rel="alternate" type="text/xml" title="RSS .92" href="<?php bloginfo('rss_url'); ?>" />
    <link rel="alternate" type="application/atom+xml" title="Atom 0.3" href="<?php bloginfo('atom_url'); ?>" />

    Where would I find the address and uri settings to check/correct?
    I love WP and I’ll try to treat in better in the future! Thanks in advance for any help!

Viewing 10 replies - 1 through 10 (of 10 total)
  • Does <?php echo get_settings(‘siteurl’); ?> return the location where wp-layout.css can be found? (if you supply a URI I could see this for myself).

    Mark (podz)
    Support Maven

    @podz

    This
    http://www.gypsyresort.com/okobjector/
    has this
    http://www.okobjector.org/wp-layout.css
    as the location of the css.
    But if you put the address
    http://www.okobjector.org/wp-layout.css
    into a browser, it brings up something else …….not your css….

    TechGnome
    Moderator

    @techgnome

    glad you got it working. I was about to comment that the importURL for the CSS was not right…. it looked like it had an a href tag when it should have been the plain url.
    TG

    Well, I did have to reinstall, but I pulled the categories-, posts- and links-related tables in the old database and reinstalled them, so didn’t have to recreate those. And everything is fine now, except that the layout of my post page is not right. The categories do not float to the right. That and the Post Status etc. boxes are all in a vertical row. Any ideas how I can fix that? I don’t want to experiment anymore and screw things up again. It works this way, but it’s not very convenient.

    Mark (podz)
    Support Maven

    @podz

    categories / posts status ?
    Do you mean this stuff ?
    Filed under: * News & Views * The Draft * Editorials * US Government
    Posted by: Rena @ 1:37 am

    No, no. On my admin/post.php page, where you input the data.All the boxes are in a single vertical row down the page, instead of spread out, with the categories list on the right.

    Mark (podz)
    Support Maven

    @podz

    Ah ……. it’s not found the ‘admin.css’ file.
    See where it actually is on the server, then, on the post.php page, View Source and see where the program thinks it is ?

    That’s the trouble, all APPEARS well: The wp-admin.css file is in the wp-admin directory, same as post.php. It is being called with:
    <link rel="stylesheet" href="wp-admin.css" type="text/css" />

    so there shouldn’t be a problem. But there is. I’m guessing that when I imported the old tables, I pulled in something that had been messed up with the previous install. But what, she wonders, seeing a third (totally new) install in her future.

    Mark (podz)
    Support Maven

    @podz

    If this were my problem:
    Try hard refresh CTRL-F5 if using windows
    if no go ..
    Remove that css file from the server, login, hard refresh again, log out, replace file, login, see what happens ..
    It won’t be the database that’s messing this up ..
    Maybe the program *thinks* it has the css in the cache, so clearing that may help ?

    Mark (podz)
    Support Maven

    @podz

    Firefox user here ….. maybe Sushubh (the resident WP /Opera expert) could help here ??

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Stylesheet and site url problem’ is closed to new replies.