Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #202756

    Hello, guys from kriesi-Team!

    I’m using Multilingualpress from inspsyde GmbH (marketpress.de). They gave me this snippet

    if( function_exists( 'mlp_show_linked_elements' ) ) :
    mlp_show_linked_elements( 
    array(
    'link_text' => 'flag', // oder 'text' oder 'text_flag'
    'show_current_blog' => TRUE
    ) 
    );
    endif;

    which can be added to header.php, to get the language switcher. I’ve done this after this lines of header.php:

    echo "<nav class='main_menu' data-selectname='".__('Select a page','avia_framework')."' ".avia_markup_helper(array('context' => 'nav', 'echo' => false)).">";
                                    $avia_theme_location = 'avia';
                                    $avia_menu_class = $avia_theme_location . '-menu';
                                    $args = array(
                                        'theme_location'	=> $avia_theme_location,
                                        'menu_id' 			=> $avia_menu_class,
                                        'container_class'	=> $avia_menu_class,
                                        'fallback_cb' 		=> 'avia_fallback_menu',
                                        'walker' 			=> new avia_responsive_mega_menu()
                                    );
    
                                    wp_nav_menu($args);

    This is the result i get: http://goo.gl/8Y7mQz (view), http://goo.gl/ZHlTH4 (generated html).
    By the way, here is the documentation of this plugin:

    Can you please help me, to get this languages shown as dropdown menu (like a Shop on the picture) so, this menu items, would be also show in a mobile view. How can I change this php-snippet, so that this get the rights css-classes?

    #202758

    Hi,

    Can you post a link to your website please?

    Regards,
    Josue

    #202773

    It’s not yet available for public access. Can i send make a user account for (Email address hidden if logged out) ? Wich access rights do you need?

    #202801

    Hi!

    You can create a temporary admin login post it here privately. Please make sure to check “Set as private reply (Only you and moderators will see the content of this post)” above Submit button

    Regards,
    Yigit

    #202864
    This reply has been marked as private.
    #202890
    This reply has been marked as private.
    #203226

    Hi!

    I suggest to add this code to header.php and then use this css code

    
    .mlp_language_box{ display: none; }
    

    to hide it. Afterwards we’ll try to find a quick solution to position it properly but I can’t promise a solution because this customization is beyond the scope of our support forum (implementation of third party plugin code).

    Best regards,
    Peter

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Multilingualpress Language Switcher Enfold – Applying style of the header menu’ is closed to new replies.