Support » Fixing WordPress » Edit menu-item names BEYOND css

  • I have a client who wishes to have his menu items styled in a particular way.

    Each menu item will have either 1 or 2 words. If it has one, bold everything, if it has 2, remove the space between them and bold the second word.

    I know I have to tweak the wp_nav_menu function, and probably the wp_nav_menu_items function, I just don’t know from there what to do. Any help in any way would be greatly appreciated.

Viewing 3 replies - 1 through 3 (of 3 total)
  • In the upper right hand, from the menu editor, choose screen options. Show classes. Then you can add classes to each link.

    No way to do this dynamically in CSS that I know of – you could definitely do it with jQuery though.

    Yeah, I figured we couldn’t do it that way. Currently I just put bold tags on the second words, but I would need a better fix. Eventually my client is going to change navigation on his own, and I would rather not teach my clients how to bold text. Even that simple idea is complicated to some…

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Edit menu-item names BEYOND css’ is closed to new replies.