Hi @ravi, thanks for replying. I tried you code and by changing “top_menu” by my menu named “Main Menu” which is also the primary menu; (I also tried it by replacing “top_menu” by “primary” and “MainMenu” but it did not work).
Can you kindly write the code again with the appropriate menu name based on the information given above?
Thanks for your help.