• I’ve added do_action( 'wp_nav_menu_item_custom_fields', $item_id, $item, $depth, $args ); to the ‘navigation.php’ file which contains

    class Enlightenment_Walker_Nav_Menu extends Walker_Nav_Menu {
        //Themes Code
        function start_el( &$output, $item, $depth = 0, $args = array(), $id = 0 ) {
        //Themes Code
        Your action hook
        }
    }

    but it still isn’t working.
    Any ideas?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author HelgaTheViking

    (@helgatheviking)

    Not really, no. I would contact the theme to see if they can add compatibility. Can you post the entire Walker somewhere? I could take a quick look.

    Thread Starter tomplum

    (@tomplum)

    Thanks for the quick reply.

    The navigation.php file is here: https://pastebin.com/3201w8Qd

    Thread Starter tomplum

    (@tomplum)

    Update: While I had the action added to the function in navigation.php, my website listed the 3 radio buttons (Logged In Users, Logged Out Users, Everyone) loads of times in my nav bar on the site.

    But I’ve found menu-icons-walker.php (Here: https://pastebin.com/5EiiM2Qk) and I tried adding the action to the start_el() function and it now does the same thing but in the Appearance>Menus page. Which is closer… but not quite there.

    Plugin Author HelgaTheViking

    (@helgatheviking)

    You need to modify whatever class is returned when filtering wp_edit_nav_menu_walker. There can be only one, which is the cause of 99% of all my support topics. navigation.php sounds like, and I think your results confirm, that it’s a front-end display template.

    menu-icons-walker.php looks more like the culprit. So massively annoying that themes keep adding this kind of functionality into the theme when there are plugins for this.

    I would insert my code at line 141… right after the description. The options are supposed to appear in Appearance>Menus.

    Thread Starter tomplum

    (@tomplum)

    Awesome it works. I had it somewhere else which I managed to just get working. But on line 141 it now displays it correctly in each menu item’s drop down menu.

    I’ve used this plugin on a few sites now and it does the job perfectly.

    Thanks very much for your time.

    • This reply was modified 8 years, 1 month ago by tomplum.
    Plugin Author HelgaTheViking

    (@helgatheviking)

    Glad you got it sorted. If you are feeling so inclined you can leave a review or send me a margarita.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Not working with Enlightenment Theme’ is closed to new replies.