• Hi,

    I’m trying to add text to the nav image, and i’ve done it in the past, but can’t for the life of me get it working now.

    I am trying to add this code in to functions.php which works on my local machine, but when trying to put it live, it breaks the site (just get a white blank screen):

    function md_nmi_custom_content( $content, $item_id, $original_content ) {
    $content = $content . ‘<span class=”page-title”>’ . $original_content . ‘</span>’;

    return $content;
    }
    add_filter( ‘nmi_menu_item_content’, ‘md_nmi_custom_content’, 10, 3 );

    any idea what i’m doing wrong? it’s driving me insane, even more so because i know that i’ve done it in the past.

    thanks in advance

    https://www.ads-software.com/plugins/nav-menu-images/

  • The topic ‘Text AND Image’ is closed to new replies.