Archived topic
GeneratePress bug in navigation.php when used with CoursePress plugin from WPMU
1 reply · Started by Göran on April 6, 2017
Viewing posts 1–2 of 2
I found a fix for the bug at line 213 in navigation.php that solves this and simply wanted to share it.
The modified code is:
if ( in_array( $args->theme_location, apply_filters( 'generate_menu_arrow_theme_locations', $theme_locations ) ) ) {
if(null != $item->classes) {
foreach ( $item->classes as $value ) {
if ( 'menu-item-has-children' === $value ) {
$title = $title . '<span role="button" class="dropdown-menu-toggle" aria-expanded="false"></span>';
}
}
}
}
The original code was:
if ( in_array( $args->theme_location, apply_filters( 'generate_menu_arrow_theme_locations', $theme_locations ) ) ) {
foreach ( $item->classes as $value ) {
if ( 'menu-item-has-children' === $value ) {
$title = $title . '<span role="button" class="dropdown-menu-toggle" aria-expanded="false"></span>';
}
}
}
Just thought that this might be useful for others too.
// Göran
What was the original error you were getting?
This archived topic is closed to new replies.