Z header.php wywaliłem górny pasek - menu nawigacyjne (wp_nav_menu) i wyszukiwarkę.
Chcę z lewej strony wywalić:
Cytat
Search

Recent Posts

Hello world!

Recent Comments

Mr WordPress on Hello world!

Archives

March 2013

Categories

Uncategorized

Meta

Log in
Entries RSS
Comments RSS
WordPress.org

i wstawić menu nawigacyjne, ewentualnie pokombinować aby te menu ładnie wyglądąło.

Gdy wstawiam do sidebar.php:
  1. <?php
  2. /**
  3.  * The Sidebar containing the main widget area.
  4.  *
  5.  * @package WordPress
  6.  * @subpackage Twenty_Eleven
  7.  * @since Twenty Eleven 1.0
  8.  */
  9.  
  10. $options = twentyeleven_get_theme_options();
  11. $current_layout = $options['theme_layout'];
  12.  
  13. if ( 'content' != $current_layout ) :
  14. ?>
  15. <div id="secondary" class="widget-area" role="complementary">
  16. <?php if ( ! dynamic_sidebar( 'sidebar-1' ) ) : ?>
  17.  
  18. <aside id="archives" class="widget">
  19. <h3 class="widget-title"><?php _e( 'Archives', 'twentyeleven' ); ?></h3>
  20. <ul>
  21. <?php wp_get_archives( array( 'type' => 'monthly' ) ); ?>
  22. </ul>
  23. </aside>
  24.  
  25. <aside id="meta" class="widget">
  26. <h3 class="widget-title"><?php _e( 'Meta', 'twentyeleven' ); ?></h3>
  27. <ul>
  28. <?php wp_register(); ?>
  29. <li><?php wp_loginout(); ?></li>
  30. <?php wp_meta(); ?>
  31. </ul>
  32. </aside>
  33.  
  34. <?php endif; // end sidebar widget area ?>
  35. </div><!-- #secondary .widget-area -->
  36. <?php endif; ?>


kod z nav id
  1. <nav id="access" role="navigation">
  2. <h3 class="assistive-text"><?php _e( 'Main menu', 'twentyeleven' ); ?></h3>
  3. <?php /* Allow screen readers / text browsers to skip the navigation menu and get right to the good stuff. */ ?>
  4. <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>
  5. <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>
  6. <?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. */ ?>
  7. <?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>
  8. </nav>

to nie ma efektu.

Mowa o domyślnym szablonie twentyeleven.