We're a community of 1.1M IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,080,644 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

Adding code to php

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!

3
Contributors
3
Replies
9 Hours
Discussion Span
6 Months Ago
Last Updated
4
Views
suavedesign
Junior Poster in Training
97 posts since Dec 2010
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

I don't see any reason you can't just change it yourself

bops
Posting Whiz in Training
273 posts since Aug 2005
Reputation Points: 24
Solved Threads: 16
Skill Endorsements: 0

Because all the files are php files, and I dont know php. (only html and css), so where would I put my html code? Can I just add it to php files?

suavedesign
Junior Poster in Training
97 posts since Dec 2010
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

Hi,

There is a place called codex, and this is the place where they revealed the ins-and-outs of wordpress from posting your first blog all the way up to migrating wordpress sites.

If you are interested, Click Here.

There is a minor modification allowed inside the admin dashboard, but this one is pretty limited to just a simple modification. Log in to your WP site as admin, click on the dashboard, click on the appearance, and then click on the editor link.

Normally, you will be presented with some php files and css files of your default theme which I believe you can't do much about editing on them, unless you educate yourself at the wordpress codex.

Just a friendly advice, before venturing into editing PHP documents, you must know the basics of PHP.

veedeoo
Master Poster
764 posts since Oct 2011
Reputation Points: 298
Solved Threads: 133
Skill Endorsements: 13

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
 
© 2013 DaniWeb® LLC
Page generated in 0.0640 seconds using 2.72MB