Tagged: , , , , ,

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • #694317

    My clients have been very amendment in having some specific menu behaviors, one of them being that the hover and active menu items be bold. This breaks the menus slightly as it has to expand for the 1 or 2 px added space.

    I tried to use the text-shadow trick but the tiny bit of blur it gives is apparently too much so I have to find alternate solutions.

    I have read in many places of there being some tricks around this. The one that looks most promising is this and I would like to know if someone can show me how to implement it:
    It’s adding a bit of JS code just before end of the WP main menu but I’m not sure.

    I also read that this works

    $('ul.nav li a').each(function(){
        $(this).parent().width($(this).width() + 4);

    But again, I’m not sure how to implement it.

    this my site with the menu in question: http://pclmedia.ca/

    Thank you!



    Looks like you got the hover to work already? Please try this for the active menu item:

    .current_page_item .avia-menu-text {
    font-weight:bold !important;

    Best regards,


    Thank you the for the bit of code and I will implement it right away.

    The hover works but it pushes the menu item next to it as it expands due to the extra pixel or two it’s now using. The JS I posted above apparently solves this issue but I have no idea if it works.

    When you run the mouse over the whole menu you really notice it.



    I’m not sure the code you posted would work to be honest, I think you will have to play around with the padding/margins or the menu items on hover if you want to get that to work.


Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.