![]() |
|
||||||
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
I'm sure this has been covered but I searched the forum and could only find the tutorial on changing the colour viewtopic.php?f=15&t=3894
I'd like to change the color of the bg to an image. I have an image, I've renamed it bg.gif and ftp'd it over to my images folder. Within the text editor I have tried taking out the hex code before the (images/bg.gif) as this seemed to be overiding it, but since removing it I just get a white bg. What is the glaringly obvious thing that I am missing? url is http://nikkibackshall.com Thank you, |
|
#2
|
|||
|
|||
|
Nikki,
Replace the hex code with the word transparent. That should do it.
__________________
Ade Themessence - Studiograsshopper WordPress plugins: Dynamic Content Gallery | Reveal Page Templates | Custom Taxonomies Menu Widget Check out the Genesis and Child Theme tutorials before posting your question - and please provide YOUR URL! Make Andrea happy - read her Firebug tutorial and save yourself loads of time and effort. |
|
#3
|
||||
|
||||
|
Quote:
First, you are also missing the "url" in front of the url in the style sheet: Code:
body {
background: (images/bg.gif) top center repeat-y;
color: #333333;
font-size: 12px;
font-family: Arial, Tahoma, Verdana;
margin: 0px auto 0px;
padding: 0px;
}
Code:
body {
background: #ebebeb url(images/bg.gif) top center repeat-y;
color: #333333;
font-size: 12px;
font-family: Arial, Tahoma, Verdana;
margin: 0px auto 0px;
padding: 0px;
}
So, I have to ask: How do you know this is not working, if you can't see what is behind the content? Add this little JavaScript to your header (header.php) and perhaps things will become clear: Code:
<script type='text/javascript'>
jQuery(document).ready(function($) {
$('body div, div *').css('background-color', 'transparent').css('background', 'none');
});
</script>
HTH,
__________________
Charles "Rubeus Hagrid" Clarkson StudioPress on Facebook I'm not really a smart person. I just play one on the Internet. Please use the HTML
or PHP tags for pasting code.Please make your links click-able: this_is_annoying.com http://this_is_not_annoying.com. |
|
#4
|
|||
|
|||
|
Quote:
Quote:
I put the piece of javascript in my header.php and it wiped out the whole header and turned my #wrap white too (I previously had this set to a light green #dfffe0). I took out the code again and everything has returned to normal - except the #wrap which is now just taking on the color of the background *sigh* ADE - I also tried changing the hex to transparent but this didn't do anything either. Sooo, I'm obviously not destined to be a WP stylist and will just stick to the basic colours - but would like my #wrap back if anyone knows how I can return it? I'm sure that when I've changed bg colours before it was just a case of replacing the existing bg image within my image folder (or just the hex within the editor if it wasn't an image) - the same kinda thing as you do with logo.png. But it's been a while since I did it so I'm obvioulsy in a kerfuffle! <---- Love that word - any excuse to use it :D (I'm still baffled as to why I can add a piece of code which changes stuff and then remove it again and it not just return to what it was, prior to me adding the code in the first place :? ) |
|
#5
|
|||
|
|||
|
Quote:
Is the idea that the tartan image will tile across the screen, like this? [attachment=0:2juv8v7f]Nikki_bg.png[/attachment:2juv8v7f] If so, in your CSS for the BODY tag, you should have this: Code:
background: transparent url(images/bg.gif) repeat; Quote:
__________________
Ade Themessence - Studiograsshopper WordPress plugins: Dynamic Content Gallery | Reveal Page Templates | Custom Taxonomies Menu Widget Check out the Genesis and Child Theme tutorials before posting your question - and please provide YOUR URL! Make Andrea happy - read her Firebug tutorial and save yourself loads of time and effort. |
|
#6
|
|||
|
|||
|
Just before I popped back - I used this "repeat scroll center top;" which has given me the tile of the bg as in your image - so next annoying question - why the annoying edge between each tile? And will I be able to get my #wrap back or will I have to start from scratch? |
|
#7
|
||||
|
||||
|
Quote:
And CSS kicks my a## too. :)
__________________
Charles "Rubeus Hagrid" Clarkson StudioPress on Facebook I'm not really a smart person. I just play one on the Internet. Please use the HTML
or PHP tags for pasting code.Please make your links click-able: this_is_annoying.com http://this_is_not_annoying.com. |
|
#8
|
||||
|
||||
|
Quote:
HTH,
__________________
Charles "Rubeus Hagrid" Clarkson StudioPress on Facebook I'm not really a smart person. I just play one on the Internet. Please use the HTML
or PHP tags for pasting code.Please make your links click-able: this_is_annoying.com http://this_is_not_annoying.com. |
|
#9
|
|||
|
|||
|
That edge is in the image itself. Looks like there's a 1px white border all the way round. You can trim this in photoshop.
__________________
Ade Themessence - Studiograsshopper WordPress plugins: Dynamic Content Gallery | Reveal Page Templates | Custom Taxonomies Menu Widget Check out the Genesis and Child Theme tutorials before posting your question - and please provide YOUR URL! Make Andrea happy - read her Firebug tutorial and save yourself loads of time and effort. |
|
#10
|
|||
|
|||
|
Quote:
Quote:
Quote:
Thank you both for your patience and help - I shall go off and do some tweakage and try and figure this out. The image doesn't have a 1px outline when I open it but is somehow getting one through the process of 'saving' it. Another little obstacle to figure out. I will get there...... |
|
#11
|
|||
|
|||
|
Here's a cropped version:
[attachment=0:192u03sa]bg_new.gif[/attachment:192u03sa]
__________________
Ade Themessence - Studiograsshopper WordPress plugins: Dynamic Content Gallery | Reveal Page Templates | Custom Taxonomies Menu Widget Check out the Genesis and Child Theme tutorials before posting your question - and please provide YOUR URL! Make Andrea happy - read her Firebug tutorial and save yourself loads of time and effort. |
|
#12
|
|||
|
|||
|
S'ok - I re-upped it directly rather than editing via Gimp and the edge went on it's own - but thank you.
I have managed to get it sorted - so I'm well pleased! I couldn't have done it without the help and bouncing ideas around. It made me go off and check stuff out and find an answer. So I learnt some stuff! Thanks to all - i'll be back with an equally irritating question later :D |
|
#13
|
|||
|
|||
|
8-)
__________________
Ade Themessence - Studiograsshopper WordPress plugins: Dynamic Content Gallery | Reveal Page Templates | Custom Taxonomies Menu Widget Check out the Genesis and Child Theme tutorials before posting your question - and please provide YOUR URL! Make Andrea happy - read her Firebug tutorial and save yourself loads of time and effort. |
|
#14
|
|||
|
|||
|
Hi am reading this page with a huge amount of intrest, trying to work out why i can not change my background.
My site is not published yet, and I am trying to change the background in landscape child theme, running off genesis - and I am a TOTAL wordpress beginner!! I don't understand what hex means, and am really working hard to understand the changes I have to make at the moment. I am not sure if anyone will be able to see my site at the moment - but I know I have to up a link in..... http://www.d1203050-18381.cp.blacknight.com/ Please if you can advise I would be so happy! Thanks Tasha |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How To Change Background To An Image? | Smart Movez | General Discussion | 1 | 02-04-2009 11:51 PM |
© Copyright 2012 Copyblogger Media LLC · StudioPress™ is a trademark of Copyblogger Media LLC
Privacy Policy | Refund Policy | Terms of Service | Affiliate Program | Contact Us