• Hello

    I’m using your plugin with the theme Divi and I can not get your snippet running:

    function my_custom_menu_item( $items, $args ) {
    if ( function_exists ( ‘the_msls’ ) && ‘primary’ == $args->theme_location ) {
    $obj = new MslsOutput;
    $arr = $obj->get( 2 );
    if ( !empty( $arr ) ) {
    $items .= ‘

    • ‘ . implode( ‘
    • ‘, $arr ) . ‘
    • ‘;
      }
      }
      return $items;
      }
      add_filter( ‘wp_nav_menu_items’, ‘my_custom_menu_item’, 10, 2 );

      Could you help me please?

The topic ‘Snippet for Divi theme’ is closed to new replies.