display parent menu name and corresponding sub menu name in the sub menu pages in wordpress - wordpress

I created parent and sub menus in word press.
Parent menus are custom links and don't have pages.
Sub menus are pages.
The menus are displayed in header area horizontally.
On hover the sub menus are displaying.
when clicking the sub menu,the corresponding page opens.
On that page i need to display corresponding parent menu and siblings of sub menu in left side of the page.
On the "About Us" page, the left-side navigation has been created manually.
I'd like to have similar submenus on other parts of website, too (About NDT, Membership etc.). How can I achieve that?
For example, this is About NDT section - note that on the left side we have "About Us" contents.
What I need is to have "About NDT" contents there - as annotated on image.
thanks

Related

How to disable Wordpress top menu link?

How to disable top menu link in Wordpress to avoid redirect to another page on click. I only need to show submenus.
Give the menu item link a the value #.
Then you'll need some Javascript to prevent default link clicking action.
E.g. with jQuery:
$('.class').click(function(e){
e.preventDefault();
});
// replace class with whatever the selector of the link is. To cover ALL menu items that have sub menus (and have the WP classes), you can use '.menu-item-has-children a'
Add custom link to menu item (Put # value on link)
Log into your WordPress administration panel. Navigate to Appearance, and select Menus:
Navigate to Links on the left and type in the URL you want to have for this menu button, add Link Text to specify what the tab will say, and then click Add to Menu:
Optionally, if you would like to control whether your menu link opens in a new tab when clicked, check the “Link Target” advanced property from within Screen Options to reveal this setting on individual menu items:
Refresh the site and you will see your new custom page and link in the navigation menu.

i have menu with submenu ;when i click on menu it should not open because it has submenu in wordpress

my question is
i have menu with submenu ;when i click on menu it should not open because it has submenu ; in wordpress
see ex
Blockquote
https://wordpress.org/support/ ; when i click on support it open ,but it have two sub menu forums & Documentation;
My simple question is when i click on menu it should not happen because it has two sub menu ,it should open on clicking on submenu
Under wp-admin/Appearance/Menus click Custom Links (on the left hand side)
Leave the URL field blank
In the Link Text field, enter whatever text you wish to show as the main item on the menu
Next, add your sub-menu items (Posts/Pages) to the menu and drag them indented under the main item
This way, the main item on the menu won't be clickable, but a sub-menu would show up, with clickable links.

Add authentication roles orangeHRM

I have added a new authentication roles for orangeHRM , it must access all menu and sub menu except Salary, i have added same roles which admin has to following tables.
ohrm_user_role_data_group
ohrm_user_role_screen
ohrm_data_group_screen
but it not coming as ordered like menu and sub menu, all are coming as menu only.
In ohrm_menu (Table which has the menu information) where you have to set the level of a menu item and the parent of a current menu item. So you can have your sub menus organized under a top menu item. See that helps!

Getting secondary sidebar menu to remain highlighted while visiting page

I recently added a page to our website and how it originally is set up so the Top Nav remains hightlighted as well as the menu on the left hand side. I am just looking to get the "Employee training" on the left hand side to remain highlighted while on the page. If you browse the other pages under this section you will see what I mean. Thanks for the help!
http://www.petrowestcorp.com/employee-training/
It appears that you have copied the Company Overview page to the Employee Training page and then made the necessary page changes.
The one change that you missed was within the
Remove the class from the first menu item (Company Overview) and put it in the last menu item (Employee Training)

How can I prevent a main menu item with sub items from being clickable in Wordpress?

Here is my site:
http://wake9.com/blogs/norcal-merced-wakesurfing-competition-2009/.
Notice the menu item "Photos and Results". Hover over it and you will see sub menu items. I want to be able to click on the sub-menu items but the main menu item shouldn't be a page or be clickable. The only way i could get this item on the menu was to make it a page. Is there a way to just have a menu item that has sub menu items to content, but the actual menu item isn't clickable? I was thinking about using JQuery to remove the anchor tag, but that is a real hack and I want to know if there is an easier way.
Thanks in advance!
One option would be to use Page Links to plugin and set the main link as '#' . I tried this and it works in my blog.
What about using the jQuery.remove to remove the element?
something like this:
function removeLinkAttrib() {
var attrib = jQuery(#menus).find("a").attr("Photos and Results");
jQuery(attrib).remove;
}
I'm not sure if $(attrib).remove; will work, but you get the picture :)
(this answer is for people using Wordpress.com free sites):
You can go to Appearance > Menus, then add a custom link to the menu by clicking 'Links' in the left-hand column, and adding "#" as the URL (and whatever you want as a label). Then add this link to the menu. Open the options for the new menu item in 'Menu Structure', and then delete '#' from the URL, so the field is blank, and save changes. Now you can add sub-menus to this menu item, and there will be no link for this item on the main menu...works for me.

Resources