#1 (permalink)  
Old 04-14-2011, 01:53 PM
BigFuzzy's Avatar
Mini-Mod
 
Join Date: May 2010
Location: Under a bridge, somewhere in northern Europe.
Posts: 2,746
Default Wordpress/CSS coding question..

Hola folks,
I'm gonna try to explain my issue but I'm not even sure what the best way to say what I want is.. so bear with me (or tell me to sod off).

Ok, here's my deal. I got a template from Theme forest for my website (below).

I have ZERO ability in coding/css etc..

I'm pretty happy with my site, but the one thing I've not been able to find is how to ensure that my pages have a plain color background that's different from the background image. For example, look to the right and left of this forum, there's that brownish/tan background, but where we're actually reading is a different (complimentary color).

This is what I want to do, but I can't seem to find the code anywhere for that. Not even sure if it's simply in the stylesheet or some other section of the css coding.. And no, my template doesn't have a section in the settings that deals with this, I believe it's coded this way.

Any/all help greatly appreciated.
__________________
Al Borrelli Photography (being re-awesomefied.. pls be patient!)
I'll make you look good

Flickr | Twitter | Tumblr | about.me | Vimeo | 500Px
Reply With Quote
  #2 (permalink)  
Old 04-14-2011, 01:58 PM
BuddhaPi's Avatar
Middle School Graduate
 
Join Date: May 2010
Location: Jupiter, Florida
Posts: 1,605
Default

sod off! I'm going to have a poke around your code...
__________________
Nikon D7000:18-105mm VR Kit, Nikkor 35-70mm 2.8AF, Nikkor 50mm f/1.8d AF, Sigma 150-500mm f/5-6.3 AF, SB600
Web Design of Palm Beach
Photo Blog
Become a Fan on Facebook
Reply With Quote
  #3 (permalink)  
Old 04-14-2011, 01:59 PM
BigFuzzy's Avatar
Mini-Mod
 
Join Date: May 2010
Location: Under a bridge, somewhere in northern Europe.
Posts: 2,746
Default

Be gentle, I'm very virginal.
__________________
Al Borrelli Photography (being re-awesomefied.. pls be patient!)
I'll make you look good

Flickr | Twitter | Tumblr | about.me | Vimeo | 500Px
Reply With Quote
  #4 (permalink)  
Old 04-14-2011, 02:12 PM
dakwegmo's Avatar
I shoot people
 
Join Date: Apr 2008
Location: Atlanta
Posts: 1,981
Default

Your template doesn't have the necessary containers to simply change the CSS styles like this. It wouldn't be too difficult to add them, but, depending on how it's built, you may need to make edits to several different files within the theme, as well as the CSS, to get it looking the way you want.
__________________
[¯Ô¯] marcus
photoblog | Facebook | flickr | 5∞ px | G+
Reply With Quote
  #5 (permalink)  
Old 04-14-2011, 02:18 PM
dakwegmo's Avatar
I shoot people
 
Join Date: Apr 2008
Location: Atlanta
Posts: 1,981
Default

The easiest thing to do would be to find the body tags in each of the theme files and immediately after that add a div then before each closing body tag, add the closing div tag.

Something like this:
HTML Code:
<body>
<div id="container">

...

</div>
</body>
</html>
In WordPress themes, the opening and closing body tags may be in more than one place, though they're usually in header.php and footer.php.

You can then style this as you see fit. Just add something like this to your style.css file.
HTML Code:
#container { 
width: 800px;
margin-left: auto; margin-right: auto; 
background-color: #00ff00;
}
__________________
[¯Ô¯] marcus
photoblog | Facebook | flickr | 5∞ px | G+

Last edited by dakwegmo; 04-14-2011 at 02:22 PM.
Reply With Quote
  #6 (permalink)  
Old 04-14-2011, 02:20 PM
dlambert's Avatar
Take better pictures.
 
Join Date: Dec 2008
Location: Ohio, USA
Posts: 1,762
Default

Very likely this is a style in your stylesheet. If you need help finding it, let me know. I'm not exactly certain which site you're talking about (Al Borrelli Photography or you blog). I can see where this might apply on your blog, and if this is what you're talking about, it should be a relatively easy fix -- something like the attached, maybe?
Attached Images
File Type: jpg al_blog.jpg (102.8 KB, 3 views)
__________________
David Lambert
lambertpix.com
More photos in my gallery and 500px
Reply With Quote
  #7 (permalink)  
Old 04-14-2011, 02:28 PM
dakwegmo's Avatar
I shoot people
 
Join Date: Apr 2008
Location: Atlanta
Posts: 1,981
Default

Ignore what I said above. It looks like you do have the container div, so it would just be a matter of setting the background color in style.css, for #container.

Find this:
HTML Code:
#container {	
	margin: 0 auto;
	width: 800px;
	background-color: none;	
	padding: 20px 50px;	
}
And replace "none" with a hex code for the color you want. That should give you a solid center column just like on DPS.
__________________
[¯Ô¯] marcus
photoblog | Facebook | flickr | 5∞ px | G+

Last edited by dakwegmo; 04-14-2011 at 02:32 PM.
Reply With Quote
  #8 (permalink)  
Old 04-14-2011, 02:32 PM
BuddhaPi's Avatar
Middle School Graduate
 
Join Date: May 2010
Location: Jupiter, Florida
Posts: 1,605
Default

looks like you have your answer!
__________________
Nikon D7000:18-105mm VR Kit, Nikkor 35-70mm 2.8AF, Nikkor 50mm f/1.8d AF, Sigma 150-500mm f/5-6.3 AF, SB600
Web Design of Palm Beach
Photo Blog
Become a Fan on Facebook
Reply With Quote
  #9 (permalink)  
Old 04-14-2011, 02:51 PM
BigFuzzy's Avatar
Mini-Mod
 
Join Date: May 2010
Location: Under a bridge, somewhere in northern Europe.
Posts: 2,746
Default

Wow.. all of you are quick.. and good.
Yes, David, that's what I want to do. Well, at least on my blog and perhaps on other individual pages.
Is it considerably more difficult to do it on selective pages, such as my "Bio" page and others?
If so, I'd be happy to just have my blog "fixed".

Dakwegmo - I assume that code would also be the place I could change the container size as well (were I want to, no plans yet)?

Seriously, thanks guys.. should have come here long ago it's just I like to figure things out on my own.

I'll see what happens when I try now. You guys rock.
__________________
Al Borrelli Photography (being re-awesomefied.. pls be patient!)
I'll make you look good

Flickr | Twitter | Tumblr | about.me | Vimeo | 500Px
Reply With Quote
  #10 (permalink)  
Old 04-14-2011, 02:58 PM
BigFuzzy's Avatar
Mini-Mod
 
Join Date: May 2010
Location: Under a bridge, somewhere in northern Europe.
Posts: 2,746
Default

It works!!

What does the "padding" do.. does that mean I can shift the whole Container down/up/left/right? I'd like to shift my whole container down as the b/g color now blocks part of my logo...
You guys can bill me ..

EDIT don't judge my color selection just yet.. just playing ATM.
__________________
Al Borrelli Photography (being re-awesomefied.. pls be patient!)
I'll make you look good

Flickr | Twitter | Tumblr | about.me | Vimeo | 500Px

Last edited by BigFuzzy; 04-14-2011 at 03:03 PM.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are Off



Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.

What’s Your Preference?

Daily Digest

Each day we send out a quick email to thousands of DPS readers to notify them of updates. This email is just short excerpt of the first few lines of our latest post with a link if you want to read it all. You can unsubscribe from this this service at any time.

This service is provided by a third party (Feedburner) and you can subscribe to it by leaving your email address in the following field and confirming your subscription when you get an email asking you to do so.

Enter your email address for
Daily Updates:

Weekly Summary

For those wanting a weekly summary of what happens on this site this free email newsletter is probably your best option. It includes a summary of the tips posted to the site each week. This newsletter is subscribed to by over 25000 readers (many who also subscribe to the other options above) - come join the community!

To subscribe to this weekly newsletter simply add your email address to the following field and then follow the confirmation prompts. You will be able to unsubscribe at any time.

Enter your email address for
Free Weekly Newsletter:

 
SEO by vBSEO 3.3.0