• I like to hide menu items, which link to the page that is just displayed, i. e. when I am on the startpage, that menu item doesn’t need to be in the menu.
    Is there an elegant solution to that?
    Thanks in advance,
    Frank

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • 1.
    Log in to your WordPress account. Hold the mouse pointer over your username in the upper right corner of the window, and then point to the blog’s name in the drop-down menu that opens. Click the “Dashboard” link that appears next to the blog name.

    2.
    Point your mouse cursor at the “Appearance” button in the left sidebar and select “Menus” from the list that opens to the right of the Appearance button.

    3.
    Locate the page you want to remove in the menu. Click on the triangle to the right of the page name. Click the “Remove” link at the bottom left of the box that opens below the page title bar.

    4.
    Click the blue “Save Menu” button at the top or bottom of the menu box to commit these changes to your blog.

    • This reply was modified 2 years, 11 months ago by yogeshyadav20.
    • This reply was modified 2 years, 11 months ago by yogeshyadav20.

    You might be able to do it with CSS. wordpress adds a class to the page being displayed in the menu. In CSS to hide the menu item for the current page you could use

    li.current_page_item {
        display: none;
    }

    The only problem is if the menu item has a submenu it will also be hidden.

    • This reply was modified 2 years, 11 months ago by mrtom414.
    Thread Starter Frank Spade

    (@spade)

    Thank you Mr. Tom, you are right.
    Its not a solution, to have the submenues be gone too.
    Is it possible to limit this to menue items without submenues?

    Thread Starter Frank Spade

    (@spade)

    Thanks Yadav,
    I know how to permanently remove a menue item, but my question was to have it hidden, only when the item was selected and the page is displayed, because this would be a recursiv call, with no benefit to the user.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Hide page link from menu’ is closed to new replies.