Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #363996

    Hi guys,

    I’m restyling a web site and I’m using the QTRANSLATE PLUS plugin for multilanguage.
    I need to place the flags in the main menù area or close to the social icons.

    If you have a preferred plugin for multilanguage please tell me , but anyway I need to have flag in the same position.

    Thanks a lot
    Simon

    #364330

    Hey Simone!

    Add this to your custom CSS.

    ul.qtrans_language_chooser {
        width:100%;
        padding:0px;
        margin:0;
        list-style-type:none;
        position:absolute;
        top: 50%;
        z-index:201;
        right: -90px;
    } 
    
    ul.qtrans_language_chooser a {
        float:right;
        width:20px;
        height: 12px;
        margin:0 2px;
        display:inline-block;
        z-index:201;
    } 

    And then add this to the bottom of your functions.php file.

    add_filter ('ava_inside_main_menu', 'qtrans_lang_chooser');
    function qtrans_lang_chooser() {
    	if (function_exists('qtrans_generateLanguageSelectCode')) {
    		ob_start();
    		echo qtrans_generateLanguageSelectCode('image');
    		$output = ob_get_contents();
    		ob_end_clean();
    		echo $output;
    	}
    }

    Best regards,
    Elliott

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.