In Wordpress, how do I introduce a new div?

michael

Active member
May 11, 2008
2,105
0
36
I would like to enter a new image block between my navigation links and the content pane which holds my block posts and sidebar. I suspect that introducing a new div block will be the best way to do this. However, I'm pretty sure this involves modifying the PHP somehow. There are a number of PHP file including

Footer
Full Page Width
Header
Main Index Template
Page Template

Does anyone have any idea which one of these needs to be edited, and if so how?
 
I'm a little confused with your question. But I will try and answer what I think your asking :p.

If you want to add a new div, for content such as text or images or whatever, then this is how.

html code:

<div id="newdiv"><img src="images/newimage.jpg" alt=" " /></div>

CSS code:
div#newdiv {
width:100%;
height:50px;
background:#000000;
}

This will make your div 100% the width of where it is located in. with a height of 50 pixels and a black background. You can edit your div using the CSS code the size and color etc. Also margins and paddings.

It would be helpful if we could see your site and where you wanted the div tag.

As far as the html code goes, just place it where you want the div box to be located. In your case after your navigation links and before the page content.

If you have more questions just email me.
 
Back
Top