NOB QUESTION which file do i edit ?

Started by mighty_joe_young, October 19, 2010, 08:26:43 AM

Previous topic - Next topic

mighty_joe_young

I want to put an image for the background of my forum,so i can also add the background to my main website

I am useing the defalt template ,which file do i change to add the backgroung is it the main index template ?

I have looked at the custmise and it says Open Themes/yourTheme/style.css.

i just cant find style.css

Its ok i think i have found it in the css folder



Thanks

sawz

i could be wrong but aren't bg images for an entire page part of the body tag?

<body background="drkrainbow.gif">
keep smiling, they'll always wonder what your up too.....

mighty_joe_young

Hi



It is the part of the body tag you need to add the link code  .There is a post how to add the link code on the forum

I just could not find the Style css

;)

sawz

if i was going to add a bg image, i would do it through index.template.php of your current theme.

maybe i'm wrong, but i would do it that way.
keep smiling, they'll always wonder what your up too.....

mighty_joe_young

Hi

Could you post me the part of the code ,and show me were i need to add the link .


Thanks  ;)

sawz

i already said index.template.php
i also said the body tag is where the bg image would go.
keep smiling, they'll always wonder what your up too.....

mighty_joe_young

#6
Quote from: sawz on October 19, 2010, 09:12:13 AM
i already said index.template.php
i also said the body tag is where the bg image would go.


I am sorry i no naff all about php .
Thanks

sawz

Quote from: sawz on October 19, 2010, 08:53:36 AM
i could be wrong but aren't bg images for an entire page part of the body tag?

<body background="drkrainbow.gif">

not under, but included in the tag.
keep smiling, they'll always wonder what your up too.....

mighty_joe_young

Hi

I dont no were the body tag is ,i am useing note pad .

I wish i new about PHP

Sorry its hard when you dont no wot you or doing


sawz

attach your current index.template.php

also tell me where this bg image is, hopefully its on your server.

i'll edit the file for you.
keep smiling, they'll always wonder what your up too.....

mighty_joe_young

Thanks i am sorry about all this .i well just download the template ,and upload the image ,get back to you soon

;)

mighty_joe_young

Image is bg.jpg ,i uploaded image to dadpeter.co.uk/bg.jpg

Attached file


Thanks

sawz

ok, where exactly is this image, post a link to it please.
keep smiling, they'll always wonder what your up too.....


sawz

keep smiling, they'll always wonder what your up too.....

mighty_joe_young

I have just reuploaded the template , it looks the same to me

Have alook and see wot you think

http://www.dadpeter.co.uk/forum

sawz

ok, lets do this. replace your index.template with your original one. take this image i am attaching and upload it to Themes/default/images/theme/

your bg image is part of the css file, so we'll be replacing whats there with your new image.
keep smiling, they'll always wonder what your up too.....

mighty_joe_young

#17
Its done it but it dont look right ,i might use an image or a diff colour,and do it again .I might use a dark blue that might look ok

sawz

no it doesn't because its being repeated horizontally only, you want it to repeat in both directions.

this css file is in the css folder of your theme, its called index.css and near the top is where you'll find the attributes for this particular item:

background: #E9EEF2 url(../images/theme/backdrop.png) repeat-x;

if you remove repeat-x it should appear on the entire page.
take care not to remove the ;
keep smiling, they'll always wonder what your up too.....

mighty_joe_young

#19
Thanks for all your help .Could you just do me one last fav ,does the colour look ok that i have changed on my forum ?if it does i will edit ccs file and use the back ground

;)

Advertisement: