Advertisement
Guest User

Untitled

a guest
Nov 24th, 2014
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. <?php if ( is_active_sidebar( 'sidebar-2' ) ) : ?>
  2. <div id="secondary" class="widget-area" role="complementary">
  3. <?php dynamic_sidebar( 'sidebar-2' ); ?>
  4. </div><!-- #secondary -->
  5. <?php endif; ?>
  6.  
  7. add_action( 'init', 'register_my_menus' );
  8. function register_my_menus() {
  9. register_nav_menus(
  10. array(
  11. 'menu-1' => __( 'Head' )
  12. )
  13. );
  14. }
  15.  
  16. <?php wp_nav_menu( array( 'theme_location' => 'menu-1' ) ); ?>
  17.  
  18. <?php get_sidebar( 'customtemplate' ); ?>
  19.  
  20. <?php get_sidebar('sidebar2');?>
  21.  
  22. Float:left;
  23. width:20%;
  24. display:block;
  25.  
  26. margin-right:20px;
  27.  
  28. float: left;
  29. width: 65%;
  30. display: block;
  31.  
  32. margin-right: 20px;
  33. margin-left: 20px;
  34.  
  35. display: block;
  36. float: left;
  37. width: 15%;
  38.  
  39. margin-left: 20px;
  40.  
  41. <?php do_action( 'before_sidebar' ); ?>
  42. <?php if ( ! dynamic_sidebar() get_sidebar() ); ?>
  43.  
  44. </div>
  45. </div><!-- #sidebar -->
  46.  
  47. </div>
  48. </div><!-- #sidebar2 -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement