1 reply [Last post]
suavedesign
suavedesign's picture
Offline
Enthusiast
Last seen: 3 years 40 weeks ago
Timezone: GMT-5
Joined: 2010-12-01
Posts: 128
Points: 191

I am using a wordpress template, and being that it's written in php, which I'm not so familiar with, I want to know the following:
Is there a way for me to add code to the index.html of my template?
What I want to do is make a solid white background for the main content of the site- I want to add a wrapper div to my code, so that the main content is in one big div with a white background.
The way it is now, there are separate ".containers", with each part of the page in a separate container. I want to know how to make one big wrapper div to include everything from under the logo and nav until the footer (not the whole site), to give the main content a white background. (The body has a colored background, and I now want to make the main content from under the nav have a white background.)
How do I do this, if there is no wrapper for just the main content? Can I add it myself?
In case you need it, my url is http://www.accupresh.com

thanks!

Hugo
Hugo's picture
Offline
Moderator
London
Last seen: 4 years 45 weeks ago
London
Joined: 2004-06-06
Posts: 15668
Points: 2806

Template files are not

Template files are not exclusively php scripting in fact they are meant to be primarily markup, the 'View' in a MVC context. You can directly modify template files to re-structure the markup if you want to, you may encounter scripting but it's clearly marked in opening / closing tags.

Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
----------------------------------------------------------------
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me