theme image problem
Permalink 1 user found helpful
Hi everyone, I have a problem. I am using a converted theme for my site, but when i use this code to load the css the theme loads, but no images are displayed. when I inspect with firebug, all the images give 403 errors. I have tried clearing the cache, and all the permissions are set correctly. I am loaing the images in the css like this. images/img01.gif any help would be appreciated. If I try loading the css with it displays as a blank page. This happens for several themes, but several other themes do load correctly using the getstylesheet function, with images.
<link href="<?php echo $this->getStyleSheet('css/style.css')?>" rel="stylesheet" type="text/css" media="screen" />
<?=$this->getThemePath()?>/
RewriteEngine off <IfModule mod_suphp.c> suPHP_ConfigPath /home/stup1did/public_html/test/php.ini <Files php.ini> order allow,deny deny from all </Files> </IfModule>
Any way we can get a link to your site to inspect the generated code and your css file?
yeah sure, Ill pm it to you guys. its a test site for a private site. the private is locked, but the test is unlocked. both have the same problem.
Some thoughts are that it could be a permissions issue on your theme images or images folder. You get a 403 Forbidden when trying to call those images directly.
Could also be problems with disabled image hot-linking on your server?
Could also be problems with disabled image hot-linking on your server?
they're all set to 755, the images and the folder, so I don't think its that. Not sure what you mean by image hotlinking.
in the css try using ./images or /images
good idea, but didn't work for me. I also tried putting the css in the images folder and loading it without /images attached and that didn't work either... any more ideas?
wierd. for some reason the outer directories were being set to 700. just noticed it accidentally, don't usually have permissions view turned on. for some reason some of my themes get 755 and some 700, which I had trouble with.
Jon