Homepage › Forum › Product Support › Canifa › language selector
- This topic has 5 replies, 2 voices, and was last updated 9 years, 10 months ago by
trinhnv.
-
AuthorPosts
-
9 years, 10 months ago #2096
AnonymousInactiveTopics: 6
Posts: 3Hey,
I have an problem....
since the new Update, my language selector doesn't work.Regards
9 years, 10 months ago #2114Hi siblings,
Thank you for feedback. I so sorry for late reply because we have just spent a long vacation.
About your problem, I don't understand, can you tell me clearly?
Have you go to: Admin -> Setting -> General -> Site Language -> choose language and doesn't work ?
Or anything else.9 years, 10 months ago #2162
AnonymousInactiveTopics: 6
Posts: 3Hey,
I mean, if you go to my shop and go over the language-button there is no language to choose.
9 years, 10 months ago #2173Hi siblings,
"Languages" in the top menu to reference position put language. We don't work multi-language.
There are many plugins for this function.
You can reference:
https://wordpress.org/plugins/multilanguage/
https://wordpress.org/plugins/qtranslate-x/Thanks!
9 years, 10 months ago #2174
AnonymousInactiveTopics: 6
Posts: 3Hey,
we are using WPML.
Since the last update the language selector don't show the possible languages.
Now I want to know how I can put the languages into the selector again.9 years, 10 months ago #2176Hi siblings,
You should create and active child-theme for yolo-canifa
1. Go to {root}/wp-content/themes/yolo-canifa-child/layouts/topbar.php and paste code the below into this file. If haven't it, create new.<?php if ( yolo_get_option( 'yolo_header_top_bar', true ) ) : $top_bar_content = yolo_get_option('yolo_top_bar_content',''); $header_top_menu = yolo_get_option( 'yolo_header_top_menu', true ); $login_register = yolo_get_option( 'yolo_top_bar_login', true ); ?> <div class="yolo-topbar"> <div class="topbar-inner container-boxed max"> <div class="yolo-container"> <!-- <div class="col-sm-<?php echo ( ( $login_register ) ? '6' : '12' ); ?>"> --> <div class="topbar-left pull-left"> <?php if(isset($top_bar_content)){ echo yolo_get_option( 'yolo_top_bar_content', '' ); } ?> </div> <!-- --> <?php if( !empty($login_register) ) : ?> <!--
--><div class="topbar-right pull-right"> <?php if ($header_top_menu) { if ( has_nav_menu( 'top-menu' ) ) { wp_nav_menu( array( 'theme_location' => 'top-menu', 'container' => false, 'depth' => 2, 'menu_class' => 'yolo-top-menu hidden-phone', 'fallback_cb' => '' ) ); } } ?> <?php if( !is_user_logged_in() ) : $register_page = YOLO_WOOCOMMERCE_EXIST ? ( wc_get_page_id( 'myaccount' ) ) : wp_registration_url(); $login_page = wp_login_url(yolo_current_url()); if( YOLO_WOOCOMMERCE_EXIST && ( $my_account = get_permalink( wc_get_page_id( 'myaccount' ) ) ) ) { $register_page = $login_page = $my_account; } ?> <a class="login-url" href="<?php echo esc_url($login_page); ?>"><i class="fa fa-sign-in"></i> <?php echo esc_html__('Login', 'yolo-canifa'); ?></a> <a class="register-url" href="<?php echo esc_url($register_page); ?>"><i class="fa fa-key"></i> <?php echo esc_html__('Register', 'yolo-canifa'); ?></a> <?php else : $logout_url = YOLO_WOOCOMMERCE_EXIST ? wp_logout_url( get_permalink( wc_get_page_id( 'myaccount' ) ) ) : wp_logout_url(yolo_current_url()); ?> <a class="logout-url" href="<?php echo esc_url($logout_url); ?>"><i class="fa fa-sign-out"></i> <?php echo esc_html__('Logout', 'yolo-canifa'); ?></a> <?php endif; ?> </div> <!-- --> <?php endif; ?> </div> </div> <!-- /.topbar-inner --> </div> <!-- /.yolo-topbar --> <?php endif; ?>2. Go to {root}/wp-content/themes/yolo-canifa-child/style.css
add at the end this file:.yolo-header .navbar-wrapper .yolo-topbar .topbar-inner .topbar-right ul.yolo-top-menu li:first-child ul.sub-menu{ display: none; } .yolo-header .navbar-wrapper .yolo-topbar .topbar-inner .topbar-right ul.yolo-top-menu li:first-child:hover ul.sub-menu{ display: block; position: absolute; }
Thanks!
-
AuthorPosts
You must be logged in and have valid license to reply to this topic.
