• Hello,

    I’m having an issue with our site’s navigation menu, specifically with dropdown menus. When a dropdown menu item is activated the parent menu-item will not take the user to the assigned link.

    I’ve found some answers on other forums but they only apply if you’re using wp-bootstrap-navwalker.

    Is there a way to make a parent of a sub-menu item clickable that takes you to a specified link?

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Theme Author Afterimage Designs

    (@afterimagedesigns)

    Hi @jrice1,

    Unfortunately, that’s the default functionality of wp-bootstrap-navwalker. I have also pending request from them from some issues regarding with their menu. I will file your request but this might take a while. Since the last issue I’ve added was not yet resolved.

    Thanks for using our theme.

    James Maiden

    (@reallygreenjames)

    I have found a solution to this involving modifying the file:

    /inc/wp_bootstrap_navwalker.php

    Source: make parent clickable

    The line numbers mentioned in that link don’t correspond with the file in the theme version I’m using (3.3.2)

    I changed line 176 to:
    $atts['href'] = ! empty( $item->url ) ? $item->url : '';

    And changed line 177 to:
    $atts['data-hover'] = 'dropdown';

    Of course, if you’re using a child theme, your approach to overriding the parent theme navwalker file might be different.

    Theme Author Afterimage Designs

    (@afterimagedesigns)

    Hi @reallygreenjames,

    Thanks for looking into this. There’s a feedback on the previous as well. Kindly expect the changes on the theme soon.

    In case someone else comes across this. There’s a CSS solution here: https://stackoverflow.com/questions/16214326/bootstrap-dropdown-with-hover

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Clickable Parent for sub-menus’ is closed to new replies.