Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Admin stylesheet, setting a background image - forbidden

Admin stylesheet, setting a background image - forbidden

Views: 948

Results 1 to 3 of 3
16 Jan 2012, 11:40 PM
#1
nigelt74 avatar

nigelt74

Totally Zenned

Join Date:
Sep 2005
Location:
Waikato, New Zealand
Posts:
1,558
Plugin Contributions:
1

Admin stylesheet, setting a background image - forbidden

Ok before you all ask i know how to set a background image and yes the image is there, and yes I have tried changing various settings/permissions.

Basically all i want is to set background images on various parts of admin using the stylesheet

This is my call in the admin stylesheet.css

body {
background-image: url("images/header-bar.jpg");
background:#fff;
color:#333333;
font-size:12px ;
font-family: arial, helvetica, sans-serif;
}

However nothing appears, so when i try directly accessing the file (while logged into admin)

Forbidden

You don't have permission to access /admin/includes/images/header-bar.jpg on this server.

When i check my server logs I get

[Mon Jan 16 18:23:48 2012]
[error]
[client my-ip]
client denied by server configuration: /home/grumpyki/grumpykiwi.com/html/admin/includes/images

So i am guessing you cannot access images from the admin images folder via the stylesheet?

16 Jan 2012, 11:43 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Admin stylesheet, setting a background image - forbidden

It's probably blocked by .htaccess, but that would only happen if you've altered the original .htaccess files supplied with Zen Cart.

Question, why don't you use the /admin/images/ folder instead of /admin/includes/images/ ?

17 Jan 2012, 12:15 AM
#3
nigelt74 avatar

nigelt74

Totally Zenned

Join Date:
Sep 2005
Location:
Waikato, New Zealand
Posts:
1,558
Plugin Contributions:
1

Re: Admin stylesheet, setting a background image - forbidden

Doh, thankyou i just needed to change the css call

from

background-image: url("images/header-bar.jpg");

to

background-image: url("../images/header-bar.jpg");

I somehow missed that it was adding the include folder

Cheers

DrByte:

It's probably blocked by .htaccess, but that would only happen if you've altered the original .htaccess files supplied with Zen Cart.

Question, why don't you use the /admin/images/ folder instead of /admin/includes/images/ ?