Skip to content

Commit 8b0200d

Browse files
authored
Merge pull request #354 from burjulius/bugfix/class-import
Docs Fix: correct get_template_directory function call when importing navwalker class
2 parents 0e8cc95 + ef30e96 commit 8b0200d

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)