WordPress.org

Forums

Stylesheet and site url problem (11 posts)

  1. Serena
    Member
    Posted 11 years ago #

    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!

  2. zadu
    Member
    Posted 11 years ago #

    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).

  3. Mark (podz)
    Support Maven
    Posted 11 years ago #

    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....

  4. TechGnome
    Moderator
    Posted 11 years ago #

    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

  5. Serena
    Member
    Posted 11 years ago #

    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.

  6. Mark (podz)
    Support Maven
    Posted 11 years ago #

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

  7. Serena
    Member
    Posted 11 years ago #

    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.

  8. Mark (podz)
    Support Maven
    Posted 11 years ago #

    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 ?

  9. Serena
    Member
    Posted 11 years ago #

    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.

  10. Mark (podz)
    Support Maven
    Posted 11 years ago #

    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 ?

  11. Mark (podz)
    Support Maven
    Posted 11 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.