• Resolved sconlan

    (@sconlan)


    I copied my site from my hosting company to a server at home using xampp to host locally for development. All the links on the site work and images displayed on the home page display correctly. However, images on pages other than the home page do not display. I have edited the html and php documents to reflect the correct path for the images on my local server, however the images still do not display. I just tried adding the images to the page using the Image Icon on the page menu but still image do not display. I am using the full path to the images directory under my /xampp/htdocs directory. Anyone have any ideas? I’d appreciate any guidance

    Thank you.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Try this for a test:

    Creat a folder “images” within your theme folder, place an image in that folder and give it the path name “images/imagename.jpg”

    So if that works

    Thread Starter sconlan

    (@sconlan)

    Thank you for the suggestion, but I have tried that as well as edting the html and/or php documents with the full path to where the image resides. I’ve tried stopping and starting Apache to see if the page will update after making changes. Checked permissions, image sizes (height and width), explicit file paths from root, uploading using the html editor menu. I searched this forum all day yesterday trying different things I found, so I did not post hastily, but nothing I’ved tried has resolved the issue. This issue has me stumped, particularly since the images on the header and the home page display correctly.

    Can you post some sample code? Like the entire path you are using?

    Thread Starter sconlan

    (@sconlan)

    Here you go, I really appreciate the assistance, thank you.

    This issue has been very perplexing. Funny though, the header.php uses the relative path to it’s image ‘<img src=”<?php bloginfo(‘template_url’); ?>/images/cbp-logo.jpg” alt=”Custom Block Pages” />’ and it displays fine. I’ve tried using that code as well but no joy.

    <img src=”/xampp/htdocs/customblockpages.com/wp-content/themes/cbp/images/examples/top-center.jpg” alt=”Top Center Template Design” />

    try removing “/xampp/htdocs” in your path and see what happens

    Thread Starter sconlan

    (@sconlan)

    AHHAAA! Success! Many thanks to you xmatter for taking the time to help this wordpress neophyte! Could this have happenned because the permalink setting was set to ‘http:///localhost/sitename.com&#8217; Just wondering. At any rate, thank you very much xmatter, have a great weekend!

    you’re welcome! i am no expert, but i am learning a lot everyday and from post’s responses here on the forum.

    I could be wrong, but there is no need for the file name to include /xampp/htdocs because all wordpress cares about is it’s own installation directory and files (meaning: from your customblockpages.com/../.. and so on.)

    the xampp and htdocs i believe is how wordpress connects to your SQL databases. anyway… i’m glad i could you, and take care!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Hosting site locally, some page images do not display’ is closed to new replies.