WordPress.org

Ready to get started?Download WordPress

Forums

Multisite Language Switcher
[resolved] multi site language switcher:display list of flags horizontaly (7 posts)

  1. bocorps
    Member
    Posted 2 years ago #

    Hi,

    could you tell me how to display the flags horizontaly (in header). The vertical listing doesn't match with my template.

    Thank you for this great plugin !

    http://wordpress.org/extend/plugins/multisite-language-switcher/

  2. realloc
    Member
    Plugin Author

    Posted 2 years ago #

    You could try to make this in the configuration of the before/after list- and before/after item-fields.

    Cheers,
    Dennis.

  3. bocorps
    Member
    Posted 2 years ago #

    if it can help people, i did as you said :

    I inserted table tag in before/after list field and td tag before/after item fields.

    It works

    TKX for fast answer

  4. designscopedublin
    Member
    Posted 1 year ago #

    I would also like to display the flags horizontally. However, I do not know where exactly to insert the table tag in before/after field. Could you be more specific?
    I have only two flags set up at teh moment but I will want to include up to 10 languages and it would be much neater to display horizontally...
    Thank You!

  5. realloc
    Member
    Plugin Author

    Posted 1 year ago #

    @designscopedublin Go to "Settings > Multisite Language Switcher Options" (/wp-admin/options-general.php?page=MslsAdmin) and you'll see these fields.

  6. designscopedublin
    Member
    Posted 1 year ago #

    Thanks, I found those fields but as I am not a php programmer I'm unsure exactly where to place the <table></table> and <td></td> tags and do not want to get errors in the code...can you just guide me with the fields below? Tkx

    ' add_settings_field( 'before_output', __( 'Text/HTML before the list', 'msls' ), array( $this, 'before_output' ), __CLASS__, 'section' );
    add_settings_field( 'after_output', __( 'Text/HTML after the list', 'msls' ), array( $this, 'after_output' ), __CLASS__, 'section' );
    add_settings_field( 'before_item', __( 'Text/HTML before each item', 'msls' ), array( $this, 'before_item' ), __CLASS__, 'section' );
    add_settings_field( 'after_item', __( 'Text/HTML after each item', 'msls' ), array( $this, 'after_item' ), __CLASS__, 'section' );'

  7. realloc
    Member
    Plugin Author

    Posted 1 year ago #

    There is nothing to code. Go to the backend of your running installation of WordPress. In Settings > Multisite Language Switcher you will find a form where you can insert your html-tags.

    Please read this article for further information.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic