in Nav menu item is not clickable if there is subpages


I would like to have clickable menu item also in case there are subpages in dropdown menu. Found some old threads about that and tried to modify navwalker.php by changing

$atts[‘href’] = ‘#’;

to that:
$atts[‘href’] = ! empty( $item->url ) ? $item->url : ‘’;

unfortunately it did not help. Could you give advice how to do that?

Hi @sandras,

Thank you for your another question.

This is the default behavior of Bootstrap framework that we have used in our theme. You can confirm it on the following Bootstrap framework nav menu demo page.

If you want to make the top level menu link visited on clicking on it then you can use the solution posted in the following reply.

Best Regards,

Thank you Movin for your help! It worked as sharm, you made my day! :slight_smile:

You are most welcome here :slight_smile:

Hi all,
I tried downloading plugin 14 to solve my problem (I’d liek to have a parent page clickable) but I can’t downoading … do you know why?
It says “Sucuri WebSite Firewall - CloudProxy - Access Denied”

Could you please help me?

@giulia Please try downloading it from this reply.