• 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?

Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter Nate

    (@nironan12)

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

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

    Thread Starter Nate

    (@nironan12)

    https://www.looneylunar.com
    In my header.php I have this to call the CSS
    <link rel="stylesheet" href="https://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!

    That page/site is not a WP blog.

    Thread Starter Nate

    (@nironan12)

    Yes it is.

    Thread Starter Nate

    (@nironan12)

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

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

    There is nothing WP there…

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

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

    Thread Starter Nate

    (@nironan12)

    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.

    Thread Starter Nate

    (@nironan12)

    I’ll just install a new theme…

    mrsixcount

    (@mrsixcount)

    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

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Images Not Showing’ is closed to new replies.