Html code not correct

Home Forums Pro Support Html code not correct

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #70788

    Hi

    Please Checkout the twig.php the html code generated is incorrect. See image attached

    Please fix asd there is one ” to0 many !

    Attachments:
    You must be logged in to view attached files.
    #70790

    code should be like this

            $menu_arial_label = '';
            foreach( get_terms('nav_menu') as $nav_menu ) {
                if ( $nav_menu->slug === $menu ) {
                    $menu_arial_label = 'aria-label= "' . $menu. '"';
                    break;
                }
            }
    
            return wp_nav_menu(
                [
                    'container' => '',
                    'menu_id' => 'responsive-menu-pro',
                    'menu_class' => null,
                    'menu' => $menu && !$options['theme_location_menu'] ? $menu : null,
                    'depth' => $options['menu_depth'] ? $options['menu_depth'] : 0,
                    'theme_location' => $options['theme_location_menu'] ? $options['theme_location_menu'] : null,
                    'walker' => $walker,
                    'items_wrap' => '<ul id="%1$s" role="menubar" '. $menu_arial_label .'>%3$s</ul>',
                    'echo' => false
                ]
            );
    #70791
    Kriti SharmaKriti Sharma
    Keymaster

    Hi Paul,

    I will ask the development team to look into the issue and provide a fix soon. I will update you whenever it will be fixed in the future release.

    Kind regards,
    Kriti

    #70792
    Kriti SharmaKriti Sharma
    Keymaster

    Hi,

    Please check the fixed copy of the responsive-menu-pro.zip

    https://drive.google.com/file/d/1hofDD4KqyYEu1QHTbyncFT4nT7oWNLJF/view?usp=sharing

    Please update it manually and let me know if you face any issue.

    Kind regards,
    Kriti

    #70815

    Hi Kriti,

    All is ok now. Thank you

    Kind regards
    Paul

    #70816

    But if there is no menu-> slug you still have a issue as then the html only has a single ”

    Please use my solution.

    #70817
    Kriti SharmaKriti Sharma
    Keymaster

    Sure, I will forward your response to the development team and keep you posted once I hear back from them.

    Kind regards,
    Kriti

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Html code not correct’ is closed to new replies.