Support » Plugin: Nav Menu Roles » [Plugin: Nav Menu Roles] This breaks my theme's mobile menu…

Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Author helgatheviking

    (@helgatheviking)

    The plugin uses a custom Walker to insert checks for user roles. If your theme also uses a custom Walker of its own for specific layout then there will be a conflict, and WordPress will use the Walker that was filtered in last. Since the style is “breaking” I presume it is using my Walker.

    There’s no way to make the plugin support every theme out there. This is a known conflict and within the confines of WordPress ( WordPress can only accept 1 Walker argument) I don’t think there is much I can do about it.

    As a work-around, the fix for this would be to remove my plugin’s filtering of the wp_nav_menu_args… and then customize your theme’s Walker to mimic the plugin’s role checking.

    Hi Helga,

    The mobile navigation is now sorted – I had a problem with a conflicting plugin – WordPress Access Control which is now resolved…

    Thanks for your help…

    Plugin Author helgatheviking

    (@helgatheviking)

    Excellent. Yes, first step in debugging is to turn off all other plugins to isolate the problem. Glad it is working for you.

    Plugin Author helgatheviking

    (@helgatheviking)

    Also please check out the 1.2 update. It uses an alternative method of restricting the menu items and will no longer conflict with a theme or plugin’s custom nav Walker.

    Hi Helga, thanks for your efforts… you’re right, this now works well with the mobile theme which is great…

    However, I’m not sure how to make a page avaliable to everyone and The ‘All Logged Out’ option doesn’t seem to work i.e. when I select this option, the menu item doesn’t appear for anyone.

    Does this ring a bell or do you think its another plugin conflict?

    Plugin Author helgatheviking

    (@helgatheviking)

    To display an item to everyone, you select “by role” and then don’t check any roles.

    “all logged out” should hide items from logged in users, and display items only to logged out users and guests.

    please let me know if that is not the case and i will try to investigate in the next few days.

    Thanks for the update… still no joy getting pages to show for public visitors, although it may be due to a plugin conflict (WP Custom Menu Filter Plugin) which I have de-activated…

    When I deactivate the WP Custom Menu Filter Plugin, the menu still appears as it was configured to via this plugin – even after I remove the custom CSS components that it references?!?

    My guess is that this is the problem…

    Plugin Author helgatheviking

    (@helgatheviking)

    Probably? even with the other one deactivated, you still aren’t able to show menu items to logged out users?

    unfortunately, I can’t promise 100% compatibility with with every other plugin out there… there are just too many.

    Yeah, not at the moment… I’m not sure why?!?

    Plugin Author helgatheviking

    (@helgatheviking)

    i just tested this, and can confirm it. it must be a bug in the new method i’m using as of version 1.2. i’ll have to patch it when i get a chance.

    Plugin Author helgatheviking

    (@helgatheviking)

    nm…. i must be sleep-deprived. i just tested all 3 modes and it works. try clearing your browser cookies?

    Thanks… I’ll dig a bit deeper on my side… what I’ve got works ok now, but this solution is simpler and easier, especially when there are more members…

    Plugin Author helgatheviking

    (@helgatheviking)

    Ok, let me know what you find out. Cheers.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘[Plugin: Nav Menu Roles] This breaks my theme's mobile menu…’ is closed to new replies.