• I am trying to make a layout like this work but to no avail.

    I would like my plugin name to have no function, just be a header for the menu then using add_submenu() have my menu

    At the moment anything thing I try makes for an unusable menu

    Menu Title — NO ACTION IF CLICKED
    Sub 1
    Sub 2
    sub 3
    …..

    I hope you can help

Viewing 3 replies - 1 through 3 (of 3 total)
  • This is your second time posting the same question.

    What exactly are you looking to do?

    Is add_submenu() a function you created?

    You can just use javascript:void(0); as the href for the parent link

    Thread Starter daveflyfishing

    (@daveflyfishing)

    My first was to ask why it was not showing on a live server. This was down to file location and fixed as I mentioned in my post.

    This questions is about how the menu functions and how to make nothing happen on the title when clicked in the ADMIN section and only have function calls when the user clicks the sub menu

    Many thanks

    For the top menu item create a custom link and give it an href of javascript:void(0);

    then create your sub-menu links under it with the pagelinks

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘add_menu() question’ is closed to new replies.