Home>Support>Tabindex Menu

Tabindex Menu

By Ozan Bayrak, 10 years ago. Last reply by Andrew Misplon, 10 years ago.

a simple question.

how can I add a tabindex to a menu?

cuz I want if someone click on the menu item the border top must be white solid 2px but in firefox it works great

and in Google chrome I don’t see it.

can you guys please tell me how to put a tabindex?

greetz

Ozan Bayrak

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 10 years, 5 months ago Andrew Misplon
    Hi, I Work Here

    Hi Ozan

    Can you explain further what you’re trying to achieve?

    Applying this to Appearance > Custom CSS (Vantage Premium) or your own Custom CSS module would produce a top border while the mouse is depressed:

    /* Menu Active State */
    .main-navigation ul li:active { border-top: 2px solid red; }
  2. 10 years, 5 months ago Ozan Bayrak

    Hello Andrw Misplon.

    The menu items have id:
    menu-item-180
    menu-item-181
    menu-item-182
    menu-item-183
    menu-item-184
    menu-item-185

    I did :

    .menu-item-180:focus
    {
    border-top:2px solid white;
    }

    this only works in firefox and internet explore but not in Google Chrome

    I added -webkit-border-before: 2px solid white still doesn’t work

    can you please help me ?

  3. 10 years, 5 months ago Andrew Misplon
    Hi, I Work Here

    If the site is live please can you send me the link.

  4. 10 years, 5 months ago Ozan Bayrak

    http://Www.Markbodde.nl/jamfabriek

    Use google chrome and firfox to check it it please.

    When you click on the menu there must be come a 2 px border top

    Firefox – good
    Google chrome – mot working

  5. 10 years, 5 months ago Ozan Bayrak

    Can’t I edit the menu.php ? to add to all link a tabindex or edit the html ? from the menu ?

  6. 10 years, 5 months ago Andrew Misplon
    Hi, I Work Here

    Tabindex would need to be dynamically inserted, it’s not as simple as statically adding. I’ll come back to you ASAP.

  7. 10 years, 5 months ago Ozan Bayrak

    Hello Andrew Misplon,

    I’m waiting for your answer Thanks for helping me!

    Greetings

    Ozan Bayrak

  8. 10 years, 5 months ago Andrew Misplon
    Hi, I Work Here

    It’s unfortunately more than we’re able to offer here as support.

    The solution if you’d like to develop it yourself or hire someone to do it for you is to add a Custom Walker: http://wordpress.stackexchange.com/questions/54965/add-tabindex-to-navmenu.

    More info on that here: http://wordpress.stackexchange.com/questions/14037/menu-items-description-custom-walker-for-wp-nav-menu/14039#14039

    Sorry I don’t have more.

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More