Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Dennis Ploetner

    (@realloc)

    You could insert something more meaningful in the description such as “English”.

    But there is of course a way to hide the title if you really need to do it:

    https://github.com/lloc/Multisite-Language-Switcher/wiki/Change-the-output

    Thread Starter nini13

    (@nini13)

    Thank you
    I am your code but I need to change anything to hide the tooltip ?

    function my_msls_output_get( $url, $link, $current ) {
        return sprintf(
            '<a href="%s">%s</a>',
            $url,
            $link->txt,
            ( $current ? ' class="current"' : '' ),
            $link
        );
    }
    add_filter( 'msls_output_get', 'my_msls_output_get', 10, 3 );

    [Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]

    Plugin Author Dennis Ploetner

    (@realloc)

    The code should be similar to this:

    function my_msls_output_get( $url, $link, $current ) {
        return sprintf(
            '<a href="%s"%s>%s</a>',
            $url,
            ( $current ? ' class="current"' : '' ),
            $link
        );
    }
    add_filter( 'msls_output_get', 'my_msls_output_get', 10, 3 );
    Thread Starter nini13

    (@nini13)

    OK thank but
    Every piece of code that can be personalized must be put where?

    Plugin Author Dennis Ploetner

    (@realloc)

    Most users place code like this in their functions.php.

    Thread Starter nini13

    (@nini13)

    super ok
    I managed to remove the balloon and put the flags in my main menu
    Again thank you for your support

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘custom tooltip’ is closed to new replies.