Skip to content

Commit

Permalink
Update README.md adding translation function to example code (#477)
Browse files Browse the repository at this point in the history
* Update README.md

* Add `echo` before translation function

* remove `echo` again

This is not needed as translation function uses `*_e` function
  • Loading branch information
pattonwebz committed Jul 1, 2020
1 parent 3d0cf30 commit 50683bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -91,7 +91,7 @@ Typically the menu is wrapped with additional markup, here is an example of a `f
<nav class="navbar navbar-expand-md navbar-light bg-light" role="navigation">
<div class="container">
<!-- Brand and toggle get grouped for better mobile display -->
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-controls="bs-example-navbar-collapse-1" aria-expanded="false" aria-label="Toggle navigation">
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-controls="bs-example-navbar-collapse-1" aria-expanded="false" aria-label="<?php esc_attr_e( 'Toggle navigation', 'your-theme-slug' ); ?>">
<span class="navbar-toggler-icon"></span>
</button>
<a class="navbar-brand" href="#">Navbar</a>
Expand Down

0 comments on commit 50683bf

Please sign in to comment.