SitePoint Sponsor

User Tag List

Results 1 to 8 of 8
  1. #1
    SitePoint Zealot naynay99's Avatar
    Join Date
    Jan 2010
    Location
    Los Angeles
    Posts
    173
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    can I remove the permalink from one button?

    When clicked I want it to go no where. It's in my main menu and has children, the top button of the drop down.

    Thank you.

  2. #2
    Quality not quantity. bo5ton's Avatar
    Join Date
    Oct 2003
    Location
    Australia
    Posts
    654
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    For the top button of your drop down menu you can just have your link reference a hashtag.

    Code:
    <a href="#">Your Menu Item Here</a>

  3. #3
    SitePoint Enthusiast
    Join Date
    Jul 2011
    Location
    Malaysia
    Posts
    77
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Not sure I understand your question. You can replace the link with # <a href="#">menu</a>, when we click it will back to same page.
    Bored with reading SEO text article? Visit our blog,
    we collected interesting SEO Infographic.
    We are local SEO company in Kuala Lumpur, Malaysia.

  4. #4
    SitePoint Zealot naynay99's Avatar
    Join Date
    Jan 2010
    Location
    Los Angeles
    Posts
    173
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    but, I am using wordpress, I just went in and typed the button name and created the button, wordpress did the rest. I'm not understanding. I try to go to edit the page and delete the permalink but it won't delete it.

  5. #5
    Quality not quantity. bo5ton's Avatar
    Join Date
    Oct 2003
    Location
    Australia
    Posts
    654
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    What theme are you using? Did wordpress (or whatever plugin) ask for a link to when you created the button?

  6. #6
    SitePoint Zealot
    Join Date
    May 2007
    Posts
    111
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think what naynay99 is asking is how to remove the parent link from a drop down menu that has children. The button referred to is probably on of the main menu links.

    If that's the case, here's a tutorial showing how to add a placeholder #. This is for themes using custom menus and wp_nav_menu.

  7. #7
    SitePoint Zealot naynay99's Avatar
    Join Date
    Jan 2010
    Location
    Los Angeles
    Posts
    173
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Cool

    I'm using a 2011 child theme. STICKS! THAT's IT!!!! THANK YOU.

  8. #8
    SitePoint Zealot
    Join Date
    May 2007
    Posts
    111
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Your welcome. Thought that's what you wanted


Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •