PDA

View Full Version : How to edit <head>



pgowder
12-17-2002, 05:15 PM
I need to add some meta tags, another stylesheet link, more tags to the body tag, etc.

Where do I edit that from?

Thanks!

|3ackdraft
12-18-2002, 11:31 AM
If you want to edit the head content, just open the page specifically,

this is not using a template system, therefore each page has the head information.

for example the first page displayed is the default.php, approx line 37 starts the head tag

hth :)

Anonymous
12-18-2002, 11:44 AM
So if I want to, for example, add a background image, I have to add it to every php file?

|3ackdraft
12-18-2002, 05:11 PM
Unfortunatly thats the way osCommerce is written, there are template programs out there that with some customizing will work, but they have a tendancy to slow osCommerce.

Now you can include the background image in the css, and you would not have to change anything except the one css file.

LukeMilton
01-01-2003, 06:44 PM
I have tried over and over to get a background image to appear using css- this is the entry:

BODY {
padding:0; background-position: center; background-image: url('http://sales.hoistwarehouse.com/www/back_drop.gif');
margin: 0px; background-repeat:repeat; background-attachment:fixed
}

What am I doing wrong?

|3ackdraft
01-03-2003, 09:00 AM
You CSS is a little difficult to understand.

I think what you are trying to accomplish is place a background image in the center of your page. and have it stay there even though the page scrolls.


try this:


body &#123; background-attachment&#58; fixed; background-image&#58; url&#40;http&#58;//sales.hoistwarehouse.com/www/back_drop.gif&#41;; background-repeat&#58; no-repeat; background-position&#58; center center&#125;


if this is not your goal, please tell me what it is you are trying to accomplish

I visited your site, I think one of your problems, is you have this as the location of your image: http://sales.hoistwarehouse.com/www/back_drop.gif

I could not locate the image.
I even tried
http://sales.hoistwarehouse.com/images/back_drop.gif
http://sales.hoistwarehouse.com/back_drop.gif
http://www.hoistwarehouse.com/www/back_drop.gif
http://www.hoistwarehouse.com/images/back_drop.gif
http://www.hoistwarehouse.com/back_drop.gif

Make sure the image is loaded to the server

Mike