1

I bought a theme from themebrain site and installed it. Some of the images for the theme are stored inside /sites/default/files/customs/. So in image tags, I refer to the source location as "sites/default/files/customs/xxx.png". However, those image are not loading. I changed the directory permission recursively to 777, but that does not resolve the issue either. But images inside /sites/all/themes/tb_travel/ load just fine though. If anyone could guide me to right direction, I would highly appreciate it.

2
  • It sounds strange that theme files would be stored outside of /sites/all/themes/mytheme/ or /sites/default/themes/mytheme/ Sep 26, 2014 at 3:41
  • Do you get a 403 or a 404 error when you load the image direectly? example.com/sites/default/files/customs/xxx.png That would identify if it's a file location issue or a permissions issue. Sep 26, 2014 at 3:56

1 Answer 1

0

Make sure the image tags have an absolute path "/sites/default/files/customs/xxx.png" and not relative, "sites/default/files/customs/xxx.png". I've palm-to-faced many times because of that.

For example:"/node/123/sites/default/files/customs/palm-to-face.png" won't load!

1
  • It was a typos in my directory name. Silly mistake. But I marked your answer as correct, as I have made such mistake in the past and got my time wasted. Thanks very much for your time.
    – KMC
    Sep 27, 2014 at 18:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.