Header Widget Area

  • kaim26



    Is there a simple way to make the Head Widget Area appear between the menus under the header and the main content?

    Is it just a matter of shifting the following code:

    (<?php /* Header widget area */
    if ($graphene_settings['enable_header_widget'] && is_active_sidebar('header-widget-area')) {
    echo '<div class="header-widget">';
    echo '</div>';

    and if so, could anyone help me figure out how to set that out in the child theme?

    Many thanks in advance for any help,




    Kenneth John Odle


    The header is a widget, which you can style (including location) with CSS. Look at my bookblog. See the “donate” section in the upper left? That’s a header widget, with location set by custom CSS.

    However, if you want to make it part of the flow (say between the nav and the posts), then find this div in header.php:

    <div id="nav">

    Just after that closing tag, you would include another div (making sure to give it a unique ID), move the code you mentioned into that div, and style the div using CSS.

    I’m not a PHP expert, but I believe that is the correct solution. It may take some trial and error to get it right, but that’s the fun part.

    (BTW, don’t forget to enclose code in backticks.)

    Have fun,




    Hi Ken,

    Many thanks for that, I’ll give it a go.

    Best wishes,


Viewing 3 posts - 1 through 3 (of 3 total)

  • You must be logged in to reply to this topic.