1,105,229 Community Members

Adding code to php

Member Avatar
suavedesign
Junior Poster
135 posts since Dec 2010
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

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!

Member Avatar
bops
Posting Whiz
301 posts since Aug 2005
Reputation Points: 1 [?]
Q&As Helped to Solve: 17 [?]
Skill Endorsements: 0 [?]
 
0
 

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

Member Avatar
suavedesign
Junior Poster
135 posts since Dec 2010
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
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?

Member Avatar
veedeoo
Veteran Poster
1,008 posts since Oct 2011
Reputation Points: 314 [?]
Q&As Helped to Solve: 164 [?]
Skill Endorsements: 17 [?]
 
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.

You
This article has been dead for over three months: Start a new discussion instead
Post:
Start New Discussion
Tags Related to this Article