sfxfreak on "[Plugin: Nav Menu Roles] theme hack works - partially"

ساخت وبلاگ

My problem was the theme iMedica (you can add that to your list of incompatible themes).
I added do_action( 'wp_nav_menu_item_custom_fields', $item_id, $item, $depth, $args ); to the start_el function in class FW_Admin_Menu_Walker extends Walker_Nav_Menu in file /wp-content/plugins/imedica-core/framework/extensions/megamenu/includes/class-fw-admin-menu-walker.php
and now I can see some, but not all of the nav-menu-roles options. I get this much:
Display Mode
Logged In Users Logged Out Users Everyone
but I don't get the checkboxes for the roles.

Is there some other reason why nav-menu-roles wouldn't be showing the roles to select? Or is this theme's plugin just too gnarly?

And yes I will be contacting the theme author, in the meantime, trying to make it work.

https://wordpress.org/plugins/nav-menu-roles/

The checkboxes only appear if you've selected "Logged In Users". So NMR's javascript has to have loaded (nav-menu-roles.js or nav-menu-roles.min.js depending on whether you have SCRIPT_DEBUG defined). Check the page source to be sure it has loaded, and additionally check your dev tools console for script errors.

Thanks for clearing up my elementary error, working well now.

Now I just have to get that plugin author to toe the line, as I have my plugins on auto-update, but from your "plan B" I gather the option once set up will still work even if the errant plugin updates.

Thanks for a great plugin.

Good luck. It's a *very* easy fix for the theme author, especially if you send them the patched file. Hopefully it works out. Yes, plan B will work even if the theme updates and breaks your patch. There actually is some movement on the core trac issues holding this up, so we might actually see this resolved at the core level eventually.

Glad you dig NMR!

sfxfreak
Member
Posted 10 minutes ago #

Hi,

@nikdow - did you get any response from BrainstormForce?
I was just hit with the same problem, but in a different file and no matter what I try to do - I can't get my web site to work again.

Thanks.

WordPress ...
ما را در سایت WordPress دنبال می کنید

برچسب : نویسنده : استخدام کار wpss بازدید : 120 تاريخ : چهارشنبه 8 ارديبهشت 1395 ساعت: 18:21