Reply To: URLs are not being displayed properly in custom menu

#20677
simoami
Participant

Please be careful when copying code from this forum. it replaces " with

Make sure to use " everywhere instead of

Full code again:


function enlightenment_nav_menu_container_extra_atts( $nav_menu, $args ) {
        $atts = apply_filters( 'enlightenment_nav_menu_container_extra_atts', ' role="navigation"' );
        $nav_menu = preg_replace('/(class=\"[^"]*\")/i', '\1' . enlightenment_extra_atts( $atts ), $nav_menu);
        return $nav_menu;
}
  • This reply was modified 9 years, 9 months ago by simoami.
  • This reply was modified 9 years, 9 months ago by simoami.