Skip to content

Commit 8d35396

Browse files
authored
Merge pull request #302 from brunolorente/readme-fix
Add missing slash in readme for the `require` calls
2 parents 58cd4f3 + d3cf6f3 commit 8d35396

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ Open your WordPress themes **functions.php** file `/wp-content/your-theme/funct
3030

3131
```php
3232
// Register Custom Navigation Walker
33-
require_once get_template_directory() . 'wp-bootstrap-navwalker.php';
33+
require_once get_template_directory() . '/wp-bootstrap-navwalker.php';
3434
```
3535

3636
If you encounter errors with the above code use a check like this to return clean errors to help diagnose the problem.
3737

3838
```php
39-
if ( ! file_exists( get_template_directory() . 'wp-bootstrap-navwalker.php' ) ) {
39+
if ( ! file_exists( get_template_directory() . '/wp-bootstrap-navwalker.php' ) ) {
4040
// file does not exist... return an error.
4141
return new WP_Error( 'wp-bootstrap-navwalker-missing', __( 'It appears the wp-bootstrap-navwalker.php file may be missing.', 'wp-bootstrap-navwalker' ) );
4242
} else {

0 commit comments

Comments
 (0)