Tagged: header menu, language switcher
-
AuthorPosts
-
December 21, 2013 at 12:57 am #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?
December 21, 2013 at 1:06 am #202758Hi,
Can you post a link to your website please?
Regards,
JosueDecember 21, 2013 at 1:29 am #202773It’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?
December 21, 2013 at 4:41 am #202801Hi!
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,
YigitDecember 21, 2013 at 11:50 am #202864This reply has been marked as private.December 21, 2013 at 4:09 pm #202890This reply has been marked as private.December 23, 2013 at 10:23 am #203226Hi!
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 -
AuthorPosts
- The topic ‘Multilingualpress Language Switcher Enfold – Applying style of the header menu’ is closed to new replies.