Home › Forums › Basel support forum › Languages on Mobile menu
Languages on Mobile menu
- This topic has 12 replies, 4 voices, and was last updated 8 years, 2 months ago by Artem Temos.
-
AuthorPosts
-
July 25, 2016 at 9:54 am #2165
grapheParticipantHello,
I’m trying to put in the right column links language. I’m trying with functions.php of my child theme, right after the registration area.
I have the language code, but I don’t know exactly how to enter the arrays.
The code of WPML is:
<?php do_action('wpml_add_language_selector'); ?>
I spoke with WPML support but do not quite know where to place
And the code of functions is:
add_filter( 'basel_header_configuration', 'basel_custom_header_configuration', 1, 1 ); function basel_custom_header_configuration() { return array( 'container' => array( 'wrapp-header' => array( 'logo', 'widget_area', 'right-column' => array( 'header_links', 'search', 'wishlist', 'cart', 'mobile_icon', ) ) ), 'navigation-wrap' => array( 'container' => array( 'main_nav' ) ) ); } ?>
I don’t know how to do that, can you help me?
Thanks!
July 25, 2016 at 4:25 pm #2168
Artem TemosKeymasterHello,
You just need to create a new “block function” for the header. The final code will be
add_filter( 'basel_header_configuration', 'basel_custom_header_configuration', 1, 1 ); function basel_custom_header_configuration() { return array( 'container' => array( 'wrapp-header' => array( 'logo', 'widget_area', 'right-column' => array( 'header_links', 'search', 'wishlist', 'cart', 'mobile_icon', 'wpml_languages', ) ) ), 'navigation-wrap' => array( 'container' => array( 'main_nav' ) ) ); } function basel_header_block_wpml_languages() { do_action('wpml_add_language_selector'); }
July 25, 2016 at 6:15 pm #2172
grapheParticipantPerfect!
Thank you!
July 25, 2016 at 6:23 pm #2174
Artem TemosKeymasterYou are welcome š
September 6, 2016 at 4:01 pm #3578
vilifParticipantHi,
I’ve a similar problem, I need to keep the language menu for mobile devices. Right now I have the language menu in the top bar menu, I’ve been trying to modify de CSS media queries to keep displaying the menu on mobile but I couldn’t find a solution.
Any advice?
Thank you
September 6, 2016 at 4:48 pm #3584
Artem TemosKeymasterHi,
Here is a code snippet that you may place into the Custom CSS section for mobile devices to show your language menu on phones
.topbar-wrapp .topbar-menu { display: block; }
Regards
September 6, 2016 at 4:50 pm #3585
vilifParticipantGreat!!
Thank you very much!!
September 6, 2016 at 4:54 pm #3586
Artem TemosKeymasterYou are welcome, we are always happy to help you, write us when you have any difficulties or issues with our theme.
And we would be glad if you will rate our theme with 5 stars on themeforest in case you are satisfied with our theme and customer service http://themeforest.net/downloads
Thank you in advance š
September 7, 2016 at 9:07 am #3615
vilifParticipantIt’s done!!
September 7, 2016 at 4:28 pm #3626
Artem TemosKeymasterThank you very much @vilif, it is very important for us!
September 21, 2016 at 8:06 am #4305
lxyamericaParticipantwhat is the name of this guy in header configuration?
https://i.imgsafe.org/23eb846908.jpg
function basel_custom_header_configuration() { }
September 21, 2016 at 8:17 am #4306
lxyamericaParticipantsorry wrong place
September 21, 2016 at 10:17 am #4313
Artem TemosKeymasterWe have answered your question in other topic.
-
AuthorPosts
- You must be logged in to create new topics. Login / Register