• Resolved interhans

    (@interhans)


    Hi,

    I’m very happy with your plugin. Almost everything works fine.

    Except:
    I set up the language switcher (only flags), and it worked, but there are two problems.

    – The flags are not centered in the widget? Please check the screenshot here:
    http://fs1.directupload.net/images/150204/pssn7aoe.png

    – And if I activate also names of the language, the font is in some style I didn’t choose resp. isn’t the style of the theme.

    So, where can I change it? If I have to change something in css, which css file would that be? Thank you.

    Thanks for your help.

    https://wordpress.org/plugins/multilingual-press/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,

    the images are centered, but there is probably a left margin or padding on the ul element.

    There is a secret feature¹ in MultilingualPress to disable our built-in stylesheet. Add the following to your theme’s functions.php:

    add_action( 'after_setup_theme', 'multilingualpress_support' );
    
    function multilingualpress_support() {
    
    	add_theme_support(
    		'multilingualpress',
    		array(
    			'language_switcher_widget_style' => TRUE
    		)
    	);
    }

    That disables our stylesheet. Now you can style the widget in your stylesheet:

    .mlp_widget {
        margin:  0;
        padding: 0;
    }

    ¹ Secret = I haven written the docs yet. 🙂

    Thread Starter interhans

    (@interhans)

    Hi,

    thanks for your reply.
    I did the changes in functions.php. That worked and something changed in the frontend.

    So, where do I have to style the widget? In the widget’s css or in the theme’s? Sorry, this might be a stupid question, but I tried in almost every css on my ftp which is somehow connected to this issue.

    Thanks a lot!

    Most likely your theme’s style.css

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Language switcher position font’ is closed to new replies.