Forums

Images Not Showing (12 posts)

  1. Nate
    Member
    Posted 3 years ago #

    Ok, I've uploaded 4 different themes, didn't change any files, and the images don't show up in my blog. I looked at the image links in the CSS and when I go to the direct URL the image shows up, so why wouldn't it show up on my blog?

  2. Nate
    Member
    Posted 3 years ago #

    Actually, it's all CSS not just images. There's no placement, formatting, anything. The CSS link is absolutely correct...

  3. moshu
    Member
    Posted 3 years ago #

    So, where is that blog with the css link absolutely correct?

  4. Nate
    Member
    Posted 3 years ago #

    http://www.looneylunar.com
    In my header.php I have this to call the CSS
    <link rel="stylesheet" href="http://www.looneylunar.com/wp-content/themes/siteground-wp51/style.css" type="text/css" media="screen" />
    The link is perfect. But the site won't show any CSS. No float, no font, no nothing. No background!

  5. moshu
    Member
    Posted 3 years ago #

    That page/site is not a WP blog.

  6. Nate
    Member
    Posted 3 years ago #

    Yes it is.

  7. Nate
    Member
    Posted 3 years ago #

    Oh, not index.html.
    That's a static HTML page.

  8. moshu
    Member
    Posted 3 years ago #

    Here is the source code:
    http://wordpress.pastebin.ca/1087698

    There is nothing WP there...

  9. moshu
    Member
    Posted 3 years ago #

    Well, you cannot have an index.php and an index.html in the same directory.

    http://www.looneylunar.com/index.php
    it gives a server error.

  10. Nate
    Member
    Posted 3 years ago #

    Index.html is not WP. Index.php is. I'm disabling index.php so my viewers won't see my ugly site. As for the server error I don't know.

  11. Nate
    Member
    Posted 3 years ago #

    I'll just install a new theme...

  12. mrsixcount
    Member
    Posted 3 years ago #

    url(../images/whatever.jpg) in a css file needs to have the images referenced in the css relative to the css file.

    In the example lets say the css is in a css directory

    css/mycss.css

    This would then mean that the whatever.jpg would need to be in the images directory at the same level as the css

    css/mycss.css
    images/whatever.jpg

    not

    css/mycss.css
    css/images/whatever.jpg

    because the url in the css has ../images or up one directory and into the images directory.

    I hope this helps.

    Dean

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags