Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi,
    yes, I faced this problem too.
    I just commented out line 158:
    acf_include(‘includes/forms/form-nav-menu.php’);

    in wp-content\plugins\advanced-custom-fields\acf.php file

    and Menu Image worked again.
    But please check out if it doesn’t affect on your ACF fields.

    Plugin Author Rui Guerreiro

    (@takanakui)

    Hi @sebinfernandez,

    Can you try @aterego suggestion?

    Thanks

    Thread Starter sebinfernandez

    (@sebinfernandez)

    Hi
    @aterego ,thanks for your advice, it worked perfectly,however i don’t know it will affect on my ACF fields.Do you know any other suggestion without modifying both the plugins code(if there is any solution i can give first priority to that).

    Hi @sebinfernandez,
    Unfortunately, no. It’s because the ACF plugin wants itself to get control over (override) the navigation menu code, so hardcoding was only way I’ve found so far.

    Plugin Author Rui Guerreiro

    (@takanakui)

    @aterego and @sebinfernandez

    Can you let me know what WordPress version are you using?

    Instead commenting the line 158 that disables the inclusion of a file, let’s try to get to the specific line of code that is causing the conflict to see what can be done.

    In the file located at plugins/advanced-custom-fields/includes/forms/form-nav-menu.php
    Try to comment the lines in red(I think it’s one of those), comment one at each time and test to see when it works.
    https://share.getcloudapp.com/nOunONE5

    Thanks

    My WordPress version is 5.5.3.

    When commenting the first line:
    add_action(‘wp_nav_menu_item_custom_fields’, array($this, ‘wp_nav_menu_item_custom_fields’), 10, 5);

    the Menu Image plugin works.

    While commenting just the second one does not change anything.

    Plugin Author Rui Guerreiro

    (@takanakui)

    Will close the topic for now. Let me know if necessary.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Menu image not showing when ACF plugin is enabled’ is closed to new replies.