-
Notifications
You must be signed in to change notification settings - Fork 153
Description
From: Paul Solomon Subject: _tk theme bug report
Message Body:
Hi Guys,
I’m a huge fan of your _tk starter theme; thank you so much for making it available!
I recently found two issues with the theme’s bootstrap-wp-navwalker.php file.
When I edit WordPress menus from the admin area, I found that the “title” attribute value of links in the menu was always output as the “navigation label” value, rather than the “title attribute” value.
I also found that the glyphicon that wraps the tag anchor text was created with a separate class value for each word in the “title attribute” value, rather than a a single class with hyphen-separated “title attribute” value.
I made two changes to the bootstrap-wp-navwalker.php file which fixed this.
At around line 79, I removed this:
$atts['title'] = ! empty( $item->title ) ? strip_tags($item->title) : '';
and substituted this:
$atts['title'] = ! empty( $item->attr_title ) ? strip_tags($item->attr_title) : '';
That results in the correct title attribute being generated.
At around line 113, I removed this:
$item_output .= ' ';
And replaced it with this:
$item_output .= ' ';
That results in the proper class value being generated.
Hope that’s helpful!
- Paul