This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

Tabindex Menu

Resolved 8 replies themetheme-vantage
11 years ago · Last reply by Andrew Misplon 11 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.

Need fast email support? Get SiteOrigin Premium

Replies

8
  1. Andrew Misplon Staff 11 years, 10 months ago

    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. Ozan Bayrak 11 years, 10 months ago

    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. Andrew Misplon Staff 11 years, 10 months ago

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

  4. Ozan Bayrak 11 years, 10 months ago

    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. Ozan Bayrak 11 years, 10 months ago

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

  6. Andrew Misplon Staff 11 years, 10 months ago

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

  7. Ozan Bayrak 11 years, 10 months ago

    Hello Andrew Misplon,

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

    Greetings

    Ozan Bayrak

  8. Andrew Misplon Staff 11 years, 10 months ago

    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.

Have a different question or issue?

Start New Thread