• Resolved Dr. SEO

    (@drseo)


    Hi!

    Today I downloaded and tried your plugin. It works fine. But I would like to highlight the current (active) menuitem in widget.

    I checked the generated HTML source and find that no extra class added for current (active) menu items (as usual).

    Please let me know, how can I select and target current menu item by CSS in your widget!

    Kind regards,
    Jozsef

    https://www.ads-software.com/plugins/custom-menu-wizard/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author wizzud

    (@wizzud)

    I’ve updated CMW (v3.2.6) with a small change that adds a cmw-current-item class to the menu item that CMW is using as its “current menu item”.

    Note that this does not affect any class that WordPress assigns – which should include the current-menu-item class – and it merely indicates which of the output items (if any) CMW decided to use (internally) as its current item.

    Thread Starter Dr. SEO

    (@drseo)

    Hi!

    This was very quick, and great! Thank you, “current menu item” class works fine!

    Kind regards,
    Jozsef

    hi,

    I can’t seem to make this work. I added the following to style.css

    .cmw-current-item {
    	font-weight: bold;
    }

    but nothing happened. I tried with and without the dot before the class name.
    Can you please help me out on what I do wrong?
    Thanks!

    Vera

    Thread Starter Dr. SEO

    (@drseo)

    Hi Vera!

    Usually menu items also has links as child. So you may need to style that for example:

    .cmw-current-item > a {
    	font-weight: bold;
    }

    Check generated source code for particular details.

    Kind regards,
    Jozsef

    hi Jozsef,

    that helped, thanks a lot!

    Vera

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Highlight current (active) menuitem in widget’ is closed to new replies.