Skip to content

Commit 6fcb9ce

Browse files
committed
upload acf-faq.php and menu conflict
1 parent c3f81d7 commit 6fcb9ce

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

Diff for: functions.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -130,5 +130,4 @@ function powercoders_post_types(){
130130
}
131131
add_action('init','powercoders_post_types');
132132

133-
define('__ROOT__', dirname(dirname(__FILE__)));
134-
require_once(__ROOT__.'/acf-faq.php');
133+
include( get_template_directory() . '/acf-faq.php');

Diff for: header.php

+7-8
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,14 @@
2121
</a>
2222
<nav role="navigation">
2323
<div class="nav-wrapper container">
24+
<?php wp_nav_menu( $args=array(
25+
'menu_class'=>'sidenav',
26+
'menu_id'=>'nav-mobile',
27+
'theme_location'=>'main'
28+
));
29+
?>
2430
<ul id="nav-mobile" class="sidenav">
25-
<!-- add the menu navigation (location , id , container, class name ) -->
26-
<?php
27-
$args = array(
28-
'theme_location' => 'main',
29-
'menu_id' => 'nav-mobile',
30-
'menu-class' => 'sidenav'
31-
);
32-
wp_nav_menu('$args'); ?>
31+
3332
<!-- <li class="active"><a href="/">Home</a></li>
3433
<li ><a href="/program">Program</a></li>
3534
<li ><a href="/about">About</a></li>

0 commit comments

Comments
 (0)