Use PHP Alternative Syntax in header templates
This commit is contained in:
@@ -3,9 +3,9 @@
|
||||
<a class="brand" href="<?php echo home_url(); ?>/"><?php bloginfo('name'); ?></a>
|
||||
<nav id="nav-main" role="navigation">
|
||||
<?php
|
||||
if (has_nav_menu('primary_navigation')) {
|
||||
if (has_nav_menu('primary_navigation')) :
|
||||
wp_nav_menu(array('theme_location' => 'primary_navigation', 'menu_class' => 'nav nav-pills'));
|
||||
}
|
||||
endif;
|
||||
?>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user