• Resolved superciccio14

    (@superciccio14)


    Hi Everybody.

    I’m working with a child theme of twenty eleven. I should ad a top Bar between navigation bar and primary div as follows:

    NAVIGATION BAR -------------------------------------------------->
    
    <MY DIV---------------------------------------------------------->
    
    <SIDE BAR -------------> <POST AREA------------------------------>

    How can I do?

    Thanks…

Viewing 4 replies - 1 through 4 (of 4 total)
  • edit header.php, find the end of the horizontal menu code, and add the div after that.

    Thread Starter superciccio14

    (@superciccio14)

    Thanks! I think that the code is this:

    <nav id="access" role="navigation">
    				<h3 class="assistive-text"><?php _e( 'Main menu', 'twentyeleven' ); ?></h3>
    				<?php /* Allow screen readers / text browsers to skip the navigation menu and get right to the good stuff. */ ?>
    				<div class="skip-link"><a class="assistive-text" href="#content" title="<?php esc_attr_e( 'Skip to primary content', 'twentyeleven' ); ?>"><?php _e( 'Skip to primary content', 'twentyeleven' ); ?></a></div>
    				<div class="skip-link"><a class="assistive-text" href="#secondary" title="<?php esc_attr_e( 'Skip to secondary content', 'twentyeleven' ); ?>"><?php _e( 'Skip to secondary content', 'twentyeleven' ); ?></a></div>
    				<?php /* Our navigation menu. If one isn't filled out, wp_nav_menu falls back to wp_page_menu. The menu assigned to the primary location is the one used. If one isn't assigned, the menu with the lowest ID is used. */ ?>
    				<?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>
    			</nav><!-- #access -->
    	</header><!-- #branding -->
    
    	<div id= "mydiv"></div>
    	<div id="main">

    Ok I added mydiv, but can I put a widget into this new div?

    Thanks a lot!

    can I put a widget into this new div?

    possibly see my recent article about widgetising parts of a theme:
    https://www.transformationpowertools.com/wordpress/add-custom-widget-area-wordpress

    Thread Starter superciccio14

    (@superciccio14)

    OK, thanks! It works!!!!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Add top bar to Twenty Eleven’ is closed to new replies.