Add theme wrapper, re-organize template files
- Implement scribu’s Theme Wrapper (see base.php) - Move templates, comments.php, and searchform.php to templates/ folder - Rename loop- files to content- - Remove all hooks except roots_head and roots_footer - Use templates/page-header.php for page titles - Use head.php for everything in <head>
This commit is contained in:
8
templates/header.php
Normal file
8
templates/header.php
Normal file
@@ -0,0 +1,8 @@
|
||||
<header id="banner" role="banner">
|
||||
<div class="container">
|
||||
<a class="brand" href="<?php echo home_url(); ?>/"><?php bloginfo('name'); ?></a>
|
||||
<nav id="nav-main" role="navigation">
|
||||
<?php wp_nav_menu(array('theme_location' => 'primary_navigation', 'menu_class' => 'nav nav-pills')); ?>
|
||||
</nav>
|
||||
</div>
|
||||
</header>
|
||||
Reference in New Issue
Block a user