New Landing How can we help? Atelier Nav Menu Roles

Viewing 11 posts - 1 through 11 (of 11 total)
  • Posted in: Atelier
  • #175039
    dogcatmarketing
    Member
    Post count: 1

    Hi,

    I’m using Atelier to create a store that has both a public-facing shop and a log-in-required wholesale shop for members, and I’m trying to have two different menus for each one. I would use the built in “Visible only when logged in” options, but the distinction between the public and private shops is down to different user roles – because it’s a subscription based shop, most customers will be logging in.

    I plan to use the plugin Nav Menu Roles, but its options don’t show on the menu editor. the author has supplied a fix on the plugin page that you can find below.

    “Workaround #1
    Shazdeh, the author of Menu Item Visibility Control plugin had the genius idea to not wait for a core hook and simply add the hook ourselves. If all plugin and theme authors use the same hook, we can make our plugins play together.

    Therefore, as of version 1.6 I am modifying my admin walker to only adding the following line (right after the description input):


    <?php
    // This is the added section
    do_action( 'wp_nav_menu_item_custom_fields', $item_id, $item, $depth, $args );
    // end added section
    ?>

    I am then adding my fields to this hook. Ask your conflicting plugin/theme’s author to do the same and our plugins should become compatible.”

    Thanks

    #175192
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Hi

    I will pass this onto the developer for you

    – Kyle

    #175360
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Hi there,

    Thanks for the heads up – just integrated this solution for the next update.

    – Ed

    #197752
    Kirsten
    Member
    Post count: 192

    Hey guys,

    I’m having the same problem. I could really use the options of the Nav Menu Role plugin to customize the visibility for a menu item by role. See this screenshot: https://wordpress.org/plugins/nav-menu-roles/screenshots/
    Only the first option appears now, but the “Access Role” doesn’t. Is that fixable?

    #197813
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Can you check if that appears with Twenty 15 theme? We’ve added in the above as to what the plugin developer has asked, so can’t think the theme is holding anything back here.

    – Ed

    #197912
    Kirsten
    Member
    Post count: 192

    Hi Ed, thanx for your reply.

    I discovered some menu items do have all the options and some don’t. See screenshot.

    Attachments:
    You must be logged in to view attached files.
    #197946
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Hi

    Not sure what you’re showing on that screenshot? Are you referring to the 2 boxes?

    – Kyle

    #198067
    Kirsten
    Member
    Post count: 192

    Yeah the two green boxes. One menu item shows only shows the display mode and the other meny item also shows “Limit logged in users to specific roles”.
    That second line should be visible on every menu item, but it isn’t.

    #198071
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Yes because one is set to logged out users, you can’t limit logged out users to specific roles because they’re not logged in. Do you understand?

    – Kyle

    #198106
    Kirsten
    Member
    Post count: 192

    Ahum oops… Wasn’t paying atention at all.. thanx for your patience

    #198109
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    No problem

Viewing 11 posts - 1 through 11 (of 11 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register