Skip to content

Commit ef30e96

Browse files
committed
Fix get_template_directory function call when importing navwalker class
1 parent 0e8cc95 commit ef30e96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ if ( ! file_exists( get_template_directory() . '/class-wp-bootstrap-navwalker.ph
4747
return new WP_Error( 'class-wp-bootstrap-navwalker-missing', __( 'It appears the class-wp-bootstrap-navwalker.php file may be missing.', 'wp-bootstrap-navwalker' ) );
4848
} else {
4949
// file exists... require it.
50-
require_once get_template_directory . '/class-wp-bootstrap-navwalker.php';
50+
require_once get_template_directory() . '/class-wp-bootstrap-navwalker.php';
5151
}
5252
```
5353
You will also need to declare a new menu in your `functions.php` file if one doesn't already exist.

0 commit comments

Comments
 (0)