views:

192

answers:

3

How do I add a div between the header area and content area of a thesis theme. What is the code I need to write in custom_functions.php file to do this? If that's not the place, where do I need to make changes to get this done?

A: 

You'll need to edit the theme files. Probably the header.php and the one where the one which contains the body. Before you fire off questions like this, please read through http://codex.wordpress.org/Theme_Development.

Noufal Ibrahim
This is incorrect. Thesis is a Theme Framework for WordPress and moves away from the traditional method of theme development in WordPress.
hsatterwhite
Ah. I stand corrected. Thanks.
Noufal Ibrahim
+1  A: 

In your custom_functions.php file add the following code:

function my_div()
{
     echo '<div>Some new DIV between the header and content</div>';
}

add_action('thesis_hook_after_header', 'my_div');

You my want to reference Thesis Hooks and the DIYThemes site for more specific Thesis help.

hsatterwhite
A: 

One really easy way, is to use Thesis Openhooks. Select the one that's between the header and the content area. I use that method all the time, especially for images. Inside the hook, all you have to do is type the HTML code for the DIV (I tried to type it here, but the code disappeared after I posted the comment) and then I can add CSS code to it in custom.css. Hope this helps :)

ShmellyCat