2nd level (drop-down) of the navigation menu not working

admin2025-06-03  3

Closed. This question is off-topic. It is not currently accepting answers.

Your question should be specific to WordPress. Generic PHP/JS/SQL/HTML/CSS questions might be better asked at Stack Overflow or another appropriate Stack Exchange network site. Third-party plugins and themes are off-topic for this site; they are better asked about at their developers' support routes.

Closed 6 years ago.

Improve this question

Second level of my navigation menu (drop-down) doesn't seem to be working.

Things to note:

  • It's not loading into the site (i.e. not showing in source code image below)
  • I'm using bootstrap 4 for the layout of my theme (the menu is not bootstrap however)
  • I'm trying to get prouct categories in dropdown, though other pages aren't showing either

I have spent 3 hours looking for a solution. Any idea to what the issue is would be greatly appriciated!

Closed. This question is off-topic. It is not currently accepting answers.

Your question should be specific to WordPress. Generic PHP/JS/SQL/HTML/CSS questions might be better asked at Stack Overflow or another appropriate Stack Exchange network site. Third-party plugins and themes are off-topic for this site; they are better asked about at their developers' support routes.

Closed 6 years ago.

Improve this question

Second level of my navigation menu (drop-down) doesn't seem to be working.

Things to note:

  • It's not loading into the site (i.e. not showing in source code image below)
  • I'm using bootstrap 4 for the layout of my theme (the menu is not bootstrap however)
  • I'm trying to get prouct categories in dropdown, though other pages aren't showing either

I have spent 3 hours looking for a solution. Any idea to what the issue is would be greatly appriciated!

Share Improve this question edited Jan 30, 2019 at 8:05 Max Yudin 6,3982 gold badges26 silver badges36 bronze badges asked Jan 30, 2019 at 4:35 TimothyKATimothyKA 292 silver badges5 bronze badges 5
  • please inspect element and check css i think this css problem and send site name i try to inspect element and send solution for you. – vikrant zilpe Commented Jan 30, 2019 at 5:58
  • Use Bootstrap-ready Walker for wp_nav_menu(). – Max Yudin Commented Jan 30, 2019 at 8:08
  • Problem is in your theme CSS file. Some CSS are missing for sub-menu items. Check your style.css file properly. – Chinmoy Kumar Paul Commented Jan 30, 2019 at 8:33
  • the issue is resolved, I had ['depth' => 1,] and i changed it to ['depth' => 3,] – TimothyKA Commented Jan 30, 2019 at 17:46
  • @TimothyKA if you have resolved your issue, then please put that as an answer, and mark it correct. That will help others that may have a similar problem. – Rick Hellewell Commented Feb 8, 2019 at 2:02
Add a comment  | 

2 Answers 2

Reset to default 0

Try to display the menu with the function wp_nav_menu() anywhere on you site , also check the depth attribute .

The issue was that I had 'depth' => 1, instead of 'depth' => 3. I didn't allow my nav to have more than 1 in depth essentially.

转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1748932675a314934.html

最新回复(0)