Title: Flag Positioning
Last modified: August 21, 2016

---

# Flag Positioning

 *  Resolved [ivanguinea](https://wordpress.org/support/users/ivanguinea/)
 * (@ivanguinea)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/flag-positioning/)
 * Hi there! Many thanks for this awesome plugin.
 * I just wanted to know if this little issue I am having has any kind of solution.
 * I want to swap position between flags in header, I have been reading for a while
   but couldn´t find anything.
 * Thanks in advance
 * [http://wordpress.org/plugins/multisite-language-switcher/](http://wordpress.org/plugins/multisite-language-switcher/)

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

 *  Plugin Author [Dennis Ploetner](https://wordpress.org/support/users/realloc/)
 * (@realloc)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/flag-positioning/#post-4351751)
 * Thank you. There are a some possibilities. Would you like to describe what you
   want to do?
 * Cheers,
    Dennis.
 *  Thread Starter [ivanguinea](https://wordpress.org/support/users/ivanguinea/)
 * (@ivanguinea)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/flag-positioning/#post-4351759)
 * Yes! The thing is I have 4 flags icons above the navigation menu. Sorry I can
   ´t attach any link.
 * The order as displayed is German, English, Spanish and French. Though the order
   I need is Spanish, English, French and German.
 * I can´t get to change them.
 * Thanks
 *  Plugin Author [Dennis Ploetner](https://wordpress.org/support/users/realloc/)
 * (@realloc)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/flag-positioning/#post-4351856)
 * In the current version you can sort by description and by language-code. Do you
   have problems to add some lines of code? I could give you an example.
 *  Thread Starter [ivanguinea](https://wordpress.org/support/users/ivanguinea/)
 * (@ivanguinea)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/flag-positioning/#post-4351887)
 * Not a sigle problem on adding lines of codes, shed light on the subjet, I beg
   you! 🙂
 * Thanks again
 *  Plugin Author [Dennis Ploetner](https://wordpress.org/support/users/realloc/)
 * (@realloc)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/flag-positioning/#post-4351917)
 * OK, just begin with the the setup of MSLS in your blogs. Set order by description
   and change the description to something like “1 – Spanish”, “2 – English”, “3–
   French” and “4 – German”.
 * For not showing these numbers in the title you could some code in your functions.
   php
 *     ```
       /**
        * Let's filter the first 4 chars of the description in
        * the generated links
        */
       function my_msls_output_get( $url, $link, $current ) {
       	return sprintf(
       		'<a href="%s" title="%s"%s>%s</a>',
       		$url,
       		substr( $link->txt, 4 ),
       		( $current ? ' class="current"' : '' ),
       		$link
       	);
       }
       add_filter( 'msls_output_get', 'my_msls_output_get', 10, 3 );
   
       /**
        * Let's cosutomize the icon-output
        */
       class MyMslsLink extends MslsLink {
       	protected $format_string = '<img src="{src}" alt=""/>';
       }
   
       /**
        * Le'ts use the above class
        */
       function my_msls_link_create( $display ) {
       	return new MyMslsLink;
       }
       add_filter( 'msls_link_create', 'my_msls_link_create' );
       ```
   
 * Read on here: [https://github.com/lloc/Multisite-Language-Switcher/wiki/Change-the-output](https://github.com/lloc/Multisite-Language-Switcher/wiki/Change-the-output)
 *  Thread Starter [ivanguinea](https://wordpress.org/support/users/ivanguinea/)
 * (@ivanguinea)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/flag-positioning/#post-4351924)
 * Great, It did Work perfectly.
 * Congrats for that support and usefull tips.
 * Thanks!
 *  Plugin Author [Dennis Ploetner](https://wordpress.org/support/users/realloc/)
 * (@realloc)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/flag-positioning/#post-4351925)
 * OK, very good.

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

The topic ‘Flag Positioning’ is closed to new replies.

 * ![](https://ps.w.org/multisite-language-switcher/assets/icon-256x256.png?rev=
   2793358)
 * [Multisite Language Switcher](https://wordpress.org/plugins/multisite-language-switcher/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/multisite-language-switcher/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/multisite-language-switcher/)
 * [Active Topics](https://wordpress.org/support/plugin/multisite-language-switcher/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/multisite-language-switcher/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/multisite-language-switcher/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [Dennis Ploetner](https://wordpress.org/support/users/realloc/)
 * Last activity: [12 years, 6 months ago](https://wordpress.org/support/topic/flag-positioning/#post-4351925)
 * Status: resolved