Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author megamenu

    (@megamenu)

    Hi royvdl,

    All of the filters present in the default menu walker are also available in the mega menu walker, the only difference is the filter name is prepended with ‘megamenu_’.

    Instead of:

    add_filter('nav_menu_css_class...

    use:

    add_filter('megamenu_nav_menu_css_class...

    (the filters are renamed to avoid conflicts with the default theme menu)

    Regards,
    Tom

    Thread Starter royvdl

    (@royvdl)

    Hi Tom,

    Thanks, for the quick answer. I’ve tested it and it works great.

    Many Thanks,
    Royvdl

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Use filters to target menu’ is closed to new replies.