I have a main menu and it has a dropdown submenu. I also have to show the same submenu below main menu along with the dropdown and it will be always there. Please see the picture to get an overview.
I was thinking of using the page_id in each page and get children of that page and show them as that submenu. But problem arises when I am inside a child page. Then I cant get the children because the page_id is different. This also causes a problem for blog. Is there any best way to achieve this? Thanks in advance.
You can achieve this in two ways:
child menu in desired
div
(i.e below the main menu)selects his child page again with some checks.
jQuery is simple solution in my opinion. Example is given below.
JSFIDDLE
Please check these lines.